忘了原地址了,好像是国外的网站上的,侵权请联系我
Download the intellij-java-google-style.xml
file from the
http://code.google.com/p/google-styleguide/
repo.
Windows
Copy it into your config/codestyles
folder in your IntelliJ settings folder. Under Settings -> Editor -> Code Style
select the google-styleguide as current code style for the Metanome project.
Macintosh
Download it and go into Preferences -> Editor -> Code Style.
Click on Manage
and import the downloaded Style Setting file. Select GoogleStyle
as new coding style.
Installing the coding style settings in Eclipse
Download the eclipse-java-google-style.xml
file from the
http://code.google.com/p/google-styleguide/
repo. Under Window/Preferences
select Java/Code Style/Formatter
. Import the settings file by selecting Import.