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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With