How can I rearrange the code in a .java file in visual studio code? For example inside a Class, I want it to automatically put static variables at the top, then attributes, then methods, etc.
I tried to google "vscode rearrange code" but it always points to Prettier, which does NOT do that.
There might not be a native feature in vs code. However, I know that IntelliJ (Java) definitely has an option to do that. So I wondered if anyone has created an extension which I could use.
Also, just to clarify further, I'm not talking about rearranging imports.
EDIT: I don't mean formatting. I am talking about rearranging the code.