Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij Idea refactoring move "getters and setters" to the end of file

I need to rearrange some files according to same style. There are many "getters and setters" in random places. I want to move them to the bottom of file and sort by name. Is any plugin or something to do this?

like image 263
Sergey Senkov Avatar asked Jun 25 '14 17:06

Sergey Senkov


1 Answers

Intellij gives you the option to automatically rearrange your code in the way that you prefer.

You can first go to Settings->Code Style->Java to choose the format of your code, and after that just hit Code->Rearrange Code.

For more information check these:

Rearrange code Official docs

Rearrange you code

like image 129
George Ant Avatar answered Oct 18 '22 13:10

George Ant