Java code actionsο
See screenshot
Common code actionsο
Common code actions which can be performed for most of the Java symbols.
Code action |
Description |
---|---|
Comment line |
Comment out the selected line. |
Uncomment line |
Uncomment the selected line. |
Find references |
Finds the references to the selected variable, method, class, etc. |
Go to definition |
Finds the file and the location where the selected symbol is defined then navigates to that location. |
Organize imports |
Organizes the imports in current file. |
Remove unused imports |
Removes all imports that are not used in the file. |
Generatorsο
These code actions help you add various implementations to your code.
Code action |
Description |
---|---|
Generate constructor |
A field based action. Allows you to choose some fields from the current class and generates a constructor which accepts and initializes those fields. |
Generate missing constructor |
Generates the missing constructor implementation with the |
Generate setters and getters |
A field based action. Allows you to choose some fields from the current class and generates setters and getters for those fields. |
Generate |
A field based action. Allows you to choose some fields from the current class and generates the |
Override superclass methods |
A method based action. Allows you to choose methods from the superclass and override them all at once. |