Configure google style guide java in Intelij

 Download style guide xml file from this link: https://github.com/google/styleguide/blob/gh-pages/intellij-java-google-style.xml


Go to Preferences,


You can chose Scheme either global level or project level.

From the setting dropdown, select import scheme option

Import downloaded IntelliJ code style xml file. You can see most of the fields are populated from xml import file. Click apply to apply the changes.

You can go to tools and check auto save action to reformat, optimize and rearrange code like here and click apply,


If you like to format project or a package, right click and click Reformat Code option.

Thank you,






Comments