Skip to content

How to install the google styleguide settings in intellij and eclipse

Kia Teymourian edited this page Jul 6, 2018 · 1 revision

Installing the coding style settings in Intellij

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.