-
Copy
intellij-java-google-style.xml
into yourconfig/codestyles
folder in your IntelliJ IDEA settings folder. -
Under
Settings > Code Style
select the GoogleStyle as current code style for the project.
Tip: You can create a symbolic link to formatter file in jvm-bloggers project directory from the config/codestyles
directory. Still you need to restart IDEA to see the changes.
- Under
File > Import
selectPreferences
and pressNext >
button. Then form Import Preferences dialogBrowse
for theeclipse-java-google-style.epf
file and import it by pressingFinish
.
Unfortunately there is no formatter for NetBeans with Google Java Style. You can try to use Eclipse Java Code Formatter Integration for NetBeans.