I have a class:
public class Alphabetical {
private String banana;
private String apple;
private String donut;
private String zebra;
private String carrot;
}
I want to automatically arrange the entries from A to Z (alphabetically)
I have tried https://blog.jetbrains.com/idea/2012/10/arrange-your-code-automatically-with-intellij-idea-12/ but this does not work, nothing happens when I press the Code > Rearrange Code menu. I am using IntelliJ 2018.2
And if this is not doable from IntelliJ, is there a maven plugin that can do this?