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
🌐
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. ... Move settings page to Tools section. ... Updated to use google-java-format 1.36.1. ... Updated to use google-java-format 1.35.0. Minimum supported IntelliJ version is now 2025.1.
Discussions

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. If it's make difference, I'm develop from android. ... This style is for code ... More on stackoverflow.com
🌐 stackoverflow.com
Codestyle and formatters
Spotless? It can use the eclipse formatter which is pretty configurable, or the Google formatter, or others. More on reddit.com
🌐 r/java
27
18
October 21, 2024
Why is IntelliJ preferred over vscode for Java?
You should try IntelliJ for some serious work. Then try VSCode. Then decide :) More on reddit.com
🌐 r/java
235
125
December 1, 2025
IntelliJ vs VSCode Java formatter differences are driving me nuts
You all should use the same cli formatter that can be triggered from the IDE, an example would be Prettier with Java plugin. More on reddit.com
🌐 r/vscode
6
16
September 24, 2025
🌐
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
🌐
GitHub
github.com › google › styleguide › blob › gh-pages › intellij-java-google-style.xml
styleguide/intellij-java-google-style.xml at gh-pages · google/styleguide
<codeStyleSettings language="JAVA"> <option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false" /> <option name="KEEP_BLANK_LINES_IN_CODE" value="1" /> <option name="BLANK_LINES_AFTER_CLASS_HEADER" value="1" /> <option name="ALIGN_MULTILINE_PARAMETERS" value="false" /> <option name="ALIGN_MULTILINE_RESOURCES" value="false" /> <option name="ALIGN_MULTILINE_FOR" value="false" /> <option name="CALL_PARAMETERS_WRAP" value="1" /> <option name="METHOD_PARAMETERS_WRAP" value="1" /> <option name="EXTENDS_LIST_WRAP" value="1" /> <option name="THROWS_KEYWORD_W
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 - This is a deliberate design decision to unify our code formatting on a single format. A google-java-format IntelliJ plugin is available from the plugin repository. To install it, go to your IDE's settings and ...
Author: google
🌐
Medium
medium.com › swlh › configuring-google-style-guide-for-java-for-intellij-c727af4ef248
Configuring Google Style Guide for Java for IntelliJ | by Reed Odeneal | The Startup | Medium
November 16, 2020 - Download the intellij-java-google-style.xml file from the google/styleguide repository here. Launch IntelliJ and go to the Settings > Preferences… menu and expand the Code Style sub-menu underneath Editor. Here, you will see a list of supported ...
🌐
Googlesource
gerrit-review.googlesource.com › Documentation › dev-intellij.html
Gerrit Code Review - IntelliJ IDEA Setup
Every time you start IntelliJ IDEA, make sure to use Code → Reformat with google-java-format on an arbitrary line of code. This replaces the default CodeStyleManager with a custom one. Thus, uses of Reformat Code either via Code → Reformat Code, keyboard shortcuts, or the commit dialog ...
Find elsewhere
🌐
Cloudera
gerrit.cloudera.org › Documentation › dev-intellij.html
Gerrit Code Review - IntelliJ Setup
Every time you start IntelliJ, make sure to use Code → Reformat with google-java-format on an arbitrary line of code. This replaces the default CodeStyleManager with a custom one. Thus, uses of Reformat Code either via Code → Reformat Code, keyboard shortcuts, or the commit dialog will ...
Author: going-magic
🌐
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.
🌐
DEV Community
dev.to › tschaka1904 › intellij-google-java-format-plugin-vs-intellij-java-google-style-xml-what-s-the-deal-197b
IntelliJ google-java-format plugin vs IntelliJ java-google-style.xml - what's the deal? - DEV Community
October 16, 2019 - The xml tries to mimic the Google style guides using IntelliJs built in code formatter and is written by a third party. The plugin comes directly from Google and seems to be a wrapper around the official formatter by Google as there are plugins for other platforms as well. To be as close as possible to the code style, I'd suggest the plugin over the xml. I'm used to using Prettier but it seems they have no Java ...
🌐
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 ...
🌐
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.
🌐
GitHub
github.com › pmendelski › intellij-codestyle
GitHub - pmendelski/intellij-codestyle: Google based java code style for IntelliJ
This repository provides two code style schemes for IntelliJ (required version >= 2017.1) GoogleStyle - Close copy of Google Java style guide
Starred by 6 users
Forked by 5 users
🌐
GitHub
raw.githubusercontent.com › google › styleguide › gh-pages › intellij-java-google-style.xml
<?xml version="1.0" encoding="UTF-8"?> <code_scheme name="GoogleStyle">
le> <match> <AND> <NAME>.*</NAME> <XML_NAMESPACE>.*</XML_NAMESPACE> </AND> </match> <order>BY_NAME</order> </rule> </section> </rules> </arrangement> </codeStyleSettings> <Objective-C> <option name="INDENT_NAMESPACE_MEMBERS" value="0" /> <option name="INDENT_C_STRUCT_MEMBERS" value="2" /> <option name="INDENT_CLASS_MEMBERS" value="2" /> <option name="INDENT_VISIBILITY_KEYWORDS" value="1" /> <option name="INDENT_INSIDE_CODE_BLOCK" value="2" /> <option name="KEEP_STRUCTURES_IN_ONE_LINE" value="true" /> <option name="FUNCTION_PARAMETERS_WRAP" value="5" /> <option name="FUNCTION_CALL_ARGUMENTS_WRA
🌐
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
Author: frellan
🌐
Github-wiki-see
github-wiki-see.page › m › HPI-Information-Systems › Metanome › wiki › Installing-the-google-styleguide-settings-in-intellij-and-eclipse
Installing the google styleguide settings in intellij and eclipse - HPI-Information-Systems/Metanome GitHub Wiki
May 12, 2019 - Download the intellij-java-google-style.xml file from https://raw.githubusercontent.com/google/styleguide/gh-pages/intellij-java-google-style.xml. Under File->Settings -> Editor -> Code Style, click on the little gear next to Scheme. Click on import Scheme and select the google-styleguide file ...