This problem can be solve installing the google-java-format Plugin.

  1. Open plugins window (CTRL+Shift+A): plugins

  2. Click on browse repositories.

  3. Search for google-java-format

  4. Install the plugin.

  5. Restart the IDE.

  6. Enable the plugin executing the action (Ctrl+Shift+A): Reformat with google-java-format Update: in the newer version of the plugin select Reformat since the plugin overrides / enhances the functionality of the standard "Reformat" command.

Additional notes from the google-java-format README

The plugin will be disabled by default. To enable it in the current project, go to File→Settings...→google-java-format Settings (or IntelliJ IDEA→Preferences...→Other Settings→google-java-format Settings on macOS) and check the Enable google-java-format checkbox. (A notification will be presented when you first open a project offering to do this for you.)

To enable it by default in new projects, use File→Other Settings→Default Settings....

Answer from Geekecom on Stack Overflow
🌐
GitHub
github.com › google › styleguide › blob › gh-pages › intellij-java-google-style.xml
styleguide/intellij-java-google-style.xml at gh-pages · google/styleguide
Style guides for Google-originated open-source projects - styleguide/intellij-java-google-style.xml at gh-pages · google/styleguide
Author: google
🌐
GitHub
github.com › google › google-java-format
GitHub - google/google-java-format: Reformats Java source code to comply with Google Java Style. · GitHub
August 14, 2026 - A google-java-format IntelliJ plugin is available from the plugin repository. To install it, go to your IDE's settings and select the Plugins category.
Author: google
Discussions

How to configure Google Java Code Formatter in Intellij IDEA 17? - Stack Overflow
In the latest versions of IntelliJ IDEA it seems that it isn't possible to import code style files like intellij-java-google-style.xml. I would like use the Google Java Code Style in this IDE but it More on stackoverflow.com
🌐 stackoverflow.com
is same Java style with Eclipse & intellij ?
i use intellij idea. my co-worker use eclipse. we are use this java style. but not correct source formatting. i try intellij import...fail install google-java-format plugin ...fail import eclipse.x... More on github.com
🌐 github.com
1
June 11, 2018
android - How to change style to java google style on Intellij - Stack Overflow
I'm trying to set the google style for java in Intellij but until now I didn't succeed. My problem is after I imported the style I couldn't see any new error or warnings from what I had without the style. Can someone help me to understand how I enable this style so I could see the changes.. I used this Installing the google styleguide settings in intellij and eclipse... More on stackoverflow.com
🌐 stackoverflow.com
Common import's order for IntelliJ and Eclipse using google-java-format - Stack Overflow
Ctrl + Alt + O for IntelliJ changes order of imports according to the Google Java Style -> OK. Shift + Ctrl + O for Eclipse changes order of imports, but it's different than in IntelliJ. Looks like chosen formatter in Eclipse has no effect in terms of imports order. More on stackoverflow.com
🌐 stackoverflow.com
🌐
Medium
medium.com › @alexprut › integrate-google-java-style-guide-in-a-java-project-567abb6d7987
Integrate Google Java Style Guide in a Java project | by Alex Prut | Medium
July 28, 2019 - Download the IntelliJ Java Google Style file, then go to IntelliJ IDEA→Preferences→Editor→Code Style→Java→Config Button (near theScheme label)→Import Scheme→IntelliJ IDEA code style XML→now select the previously downloaded file.
🌐
GitHub
github.com › HPI-Information-Systems › Metanome › wiki › Installing-the-google-styleguide-settings-in-intellij-and-eclipse
Installing the google styleguide settings in intellij and eclipse
May 12, 2019 - Under File->Settings -> Editor -> Code Style, click on the little gear next to Scheme. Click on import Scheme and select the google-styleguide file as the current code style for the Metanome project.
Author: HPI-Information-Systems
🌐
Domyassignments
domyassignments.com › home › introduction to google java coding style
Introduction to Google Java Coding Style
March 1, 2024 - Configure Formatter: Once installed, go to Window > Preferences > Java > Code Style > Formatter and select the Google formatter. Apply and Save: Apply the changes and save the configuration.
Find elsewhere
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 207329585-Code-style-configuration-in-config-codestyles-not-working
Code style configuration in "config/codestyles" not working – IDEs Support (IntelliJ Platform) | JetBrains
April 10, 2016 - You can do that import from Settings > Code Style > Java > Manage. If presented with the Manage dialog, there's an option for Eclipse XML at the bottom, you can then import as new name (To:) GoogleStyle-From-Eclipse for example.
🌐
GitHub
github.com › google › styleguide › issues › 369
is same Java style with Eclipse & intellij ? · Issue #369 · google/styleguide
June 11, 2018 - i use intellij idea. my co-worker use eclipse. we are use this java style. but not correct source formatting. i try intellij import...fail install google-java-format plugin ...fail import eclipse.x...
Author: google
🌐
Lean Tactic Reference
course.ccs.neu.edu › cs5004 › code-style.html
Code style
For Intellij IDEA, download intellij-java-google-style.xml and save it in the config/codestyles/ subdirectory of your IntelliJ configuration folder.
🌐
Googlesource
gerrit-review.googlesource.com › Documentation › dev-intellij.html
Gerrit Code Review - IntelliJ IDEA Setup
Select the previously downloaded file intellij-java-google-style.xml. Make sure that GoogleStyle is chosen as the current Scheme. In addition, the EditorConfig settings (which ensure a consistent style between Eclipse, IntelliJ, and other editors) should be applied on top of that.
🌐
Google
android.googlesource.com › platform › external › google-java-format › + › 8612b8937d1dde47f0078918ccda945310a65bdc › README.md
google-java-format
The import ordering is not handled by this plugin, unfortunately. To fix the import order, download the IntelliJ Java Google Style file and import it into File→Settings→Editor→Code Style. Version 1.6 of the google-java-format Eclipse plugin can be downloaded from the releases page.
🌐
JetBrains
plugins.jetbrains.com › plugin › 8527-google-java-format
google-java-format - IntelliJ IDEs Plugin | Marketplace
June 27, 2025 - Formats source code using the google-java-format tool. This plugin requires additional IDE configuration. For more information, read the documentation. What’s New: 1.36.1.1. Move settings page to Tools section. 1.36.1.0. Updated to use google-java-format 1.36.1. 1.35.0.0. Updated to use ...
🌐
Cloudera
gerrit.cloudera.org › Documentation › dev-intellij.html
Gerrit Code Review - IntelliJ Setup
Select the previously downloaded file intellij-java-google-style.xml. Make sure that Google Style is chosen as Scheme. In addition, the EditorConfig settings (which ensure a consistent style between Eclipse, IntelliJ, and other editors) should be applied on top of that.
🌐
Google
google.github.io › styleguide › intellij-java-google-style.xml
intellij-java-google-style.xml
xmlns:android · xmlns:.* · BY_NAME · *:id · http://schemas.android.com/apk/res/android · style · *:.*Style
🌐
Stack Overflow
stackoverflow.com › questions › 77639640 › common-imports-order-for-intellij-and-eclipse-using-google-java-format
Common import's order for IntelliJ and Eclipse using google-java-format - Stack Overflow
For me it looks like IntelliJ uses a Code Formatter also for Imports formatting and Eclipse uses it's own mechanism. How to make it common? ... In Eclipse, make sure Organize imports is not enabled as a so-called Save Action: Project > Properties: Java Editor > Save Actions. ... The order Eclipse uses if Organize Imports is used is defined in the Preferences in Java > Code Style > Organize Imports.