Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to config the generated code's placement in IntelliJ?

Now I'm using IntelliJ, it's great. But there is one annoyance: It always place generated getter setter above the actual field, how can I change this behavior?

like image 605
imgen Avatar asked Mar 21 '13 09:03

imgen


People also ask

How do I arrange my code in IntelliJ?

Press Ctrl+Alt+S to open the IDE settings and select Editor | Code Style. In the editor, select the code entries you want to rearrange and from the main menu, select Code | Rearrange Code.

How do I auto correct indentation in IntelliJ?

Automatically detect indentsPress Ctrl+Alt+S to open the IDE settings and select Editor | Code Style. Select the Detect and use existing file indents for editing checkbox. Apply the changes and close the dialog.

How do you do configure build path in IntelliJ?

Open the Project Structure dialog (File | Project Structure Ctrl+Alt+Shift+S ). In Project Settings, select Project and in the Project compiler output field, specify the corresponding path. For modules, select Modules, the module you need and the Paths tab.


1 Answers

Put your mouse pointer below all the fields. ALT + INSERT -> Getter and Setter -> Select Fields -> OK. Should be it.

like image 130
Paulius Matulionis Avatar answered Oct 03 '22 19:10

Paulius Matulionis