Since the previous project used google style, the method of using google style is also introduced here.
1. Install google-java-format
preferences -> plugins -> Browse repositories...
search for google-java-format
enable google-java-format
2. Install save actions
preferences -> plugins -> Browse repositories...
Search save actions to
enable
automatic formatting when
save Delete useless import statements
3. Automatically optimize the package options
4. Check Line Separator/Indent Size
Line separators need to be uniform, windows must not be used
Indent size needs to be uniform