IntelliJ IDEA Intention List
Description
Usage Example:
Before
Loading...
After
Loading...
Boolean
Expand Boolean
Replace Equality with Equals
Replace Equals with Equality
Simplify boolean expression
Comments
Move Comment to Separate Line
Replace with C-Style Comment
Replace with End Of Line Comment
Conditional Operator
Convert ternary operator to if statement
Replace Conditional with If Else
Replace If Else with Conditional
Control Flow
Add Annotation
Extract While Loop Condition to Internal If Statement
Invert If Condition
Merge Equivalent Ifs to ORed Condition
Merge Nested Ifs to ANDed Condition
Remove Redundant 'else'
Replace Do While Loop with While Loop
Replace For Loop with While Loop
Replace For-each Loop with Indexed For Loop
Replace For-each Loop with Iterator For Loop
Replace While Loop with Do While Loop
Replace If with Switch
Replace Switch with If
Split If
CSS
Create Selector Action
Extract Embedded Css Action
Declaration
Add Override Annotation
Add Runtime Exception to Method Signature
Assign Parameter to Field
Convert Interface to Class
Convert Method to Variable Argument Method
Convert Variable Argument Parameter to Array Parameter
Create Field for Parameter
Create Local Var from instanceof Usage
Implement Abstract Class or Interface
Implement Abstract Method
Make Type Generic
Move assignment to field declaration
Move initializer to constructor
Replace On Demand Import with Single Class Imports
Replace Qualified Name with Import
Replace with Java Style Array Declaration
Split Declaration
Split Declaration and Initialization
Unimplement Interface
Wrap Vararg Arguments with Explicit Array Creation
EJB
Add EJB interceptor
Add Method to EJB Class
Add Method to EJB Interface
Interceptor Bindings
I18N
Replace Concatenation with Formatted Output
Imports
Add On Demand Static Import
Add Single-Member Static Import
Java EE Persistence
Add EntityListener
EntityListener Bindings
JavaScript
Boolean
DeMorgan Law
Flip Comparison
Flip Conjunction Operands
Negate Comparison
Remove Boolean Equality
Comments
Move Comment To Separate Line
Replace With C-Style Comment
Replace With End Of Line Comment
Conditional Operator
Flip Conditional
Flip If
Remove Pointless Conditional
Replace Conditional With If Else
Replace If Else With Conditional
Control Flow
Add Braces
Merge Else If
Merge Equivalent Ifs To ORed Condition
Merge Nested Ifs To ANDed Condition
Merge Parallel For Loops
Merge Parallel For-In Loops
Merge Parallel Ifs
Remove Braces
Remove Redundant Else
Replace If With Switch
Replace Switch With If
Simplify If Else
Split Else If
Split ANDed Condition To Nested Ifs
Split ORed Condition To Equivalent Ifs
Declaration
Merge Declaration And Initialization
Split Declaration And Initialization
Numbers
Convert To Decimal
Convert To Hexadecimal
Convert To Octal
Other
Compute Constant Value
Compute Constant Value For Subexpression
Extract Increment
Join Concatenated String Literals
Remove Unnecessary Parentheses
Replace Assignment With Operator Assignment
Replace Double-Quoted String with Simple-Quoted String
Replace Simple-Quoted String with Double-Quoted String
Shift Operation
Replace Multiply with Shift
Replace Shift with Multiply
JUnit
Create JUnit Assertion
Flip Assert Literal
Replace assertEquals with assertTrue, assertFalse, or assertNull
Replace assertTrue, assertFalse, or assertNull with assertEquals
Numbers
Convert to Decimal
Convert to Hexadecimal
Convert to Octal
Other
Add Clarifying Parentheses
Compute Constant Value for Subexpression
Create Enum Switch Branches
Detail Exceptions
Flip Commutative Method Call
Make Append Chain Into Append Sequence
Replace + with StringBuffer.append()
Replace Assert with If Statement
Replace Assignment with Operator Assignment
Replace Catch Section with Throws Declaration
Replace Char with String
Replace Operator Assignment with Assignment
Replace String with Char
Swap Method Call Arguments
WebLogic
Create EJB