There are many JavaCode styles, For example: Java coding conventions: https://future-architect.github.io/coding-standards/documents/forJava/Java%E3%82%B3%E3%83%BC%E3%83%87%E3%82%A3% E3% 83% B3% E3% 82% B0% E8% A6% 8F% E7% B4% 84.html
Google Java Style:https://google.github.io/styleguide/javaguide.html
It would be useful to have a Code formatter.
The developers understand the style, but there is a possibility of leakage if the formatter is not automated. It is convenient to apply google-java-format.
google-java-format is a program that reformats Java source code to comply with Google Java Style.
https://github.com/google/google-java-format
You can install Plugins such as IntelliJ, Android Studio, and other JetBrains IDEs.
Eclipse downloads the JAR file, places it in the Eclipse plugins folder, and then restarts Eclipse.
After setting, you can open the JAVA file and format it with Ctrl + Shift + F.
that's all
Recommended Posts