The default selection is Intellij built-in code style. It's not Sun or Google scheme, it's a different one.

Answer from Julieta on Stack Overflow
🌐
JetBrains
jetbrains.com › help › idea › code-style-java.html
Code Style. Java | IntelliJ IDEA Documentation
July 2, 2026 - Use this page to configure formatting options for Java files. When you change these settings, the Preview pane shows how this will affect your code. Select or clear the checkboxes to insert, not to insert, or remove spaces in various contexts. In this tab, customize the code style options, which IntelliJ IDEA ...
🌐
JetBrains
jetbrains.com › help › idea › configuring-code-style.html
Code style schemes | IntelliJ IDEA Documentation
1 month ago - Press Ctrl+Alt+S to open settings and then select Editor | Code Style. Click Show Scheme Actions and select Import Scheme. Then select the necessary format. In the dialog that opens, select the file with the settings and click Open.
Discussions

java - What is the Default Code Style -> Scheme in IntelliJ - Stack Overflow
I am new to IntelliJ. I have started using it recently and was looking to setup Google Java code style. At present "Default" is selected under Editor -> Code Style -> Scheme. On clicking settings -> "Import Scheme" I see 2 options: 1) IntelliJ IDEA Code Style XML 2) Eclipse XML Profile. More on stackoverflow.com
🌐 stackoverflow.com
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
java - Enable Code Style in IntelliJ IDEA - Stack Overflow
I can see the Code Style scheme for Java under Settings - Editor - Code Style - Java. The apply button is greyed out while the OK button is highlighted. I click on the OK button and get back to my More on stackoverflow.com
🌐 stackoverflow.com
Strict Code Formatter
There is spotless which can format your code according to "Google style" or any Eclipse formatting profile. If you want formatting based on IntelliJ settings you are basically out of luck. I am not aware of any available tooling, and for the rest it is a proprietary engine. Further more, IntelliJ has just 1 config file for all formatting rules for all supporter languages. Which is rather problematic. At work we maintain an IntelliJ formatting profile and Eclipse formatting profile which should agree with each other. This also means certain formatting rules are disabled as IntelliJ and Eclipse have no compatible settings for certain rules. For example, nice Javadoc formatting results in conflicting results. So we use a less nice setting. Besides those formatting profiles we use checkstyle to verify the resulting code. More on reddit.com
🌐 r/java
30
41
January 5, 2024
🌐
JetBrains
jetbrains.com › help › idea › settings-code-style.html
Code Style | IntelliJ IDEA Documentation
1 month ago - These settings are stored in the codeStyles folder under .idea and are shared through VCS together with the project. The IDE creates the folder after you modify code style settings for your project. In the Default scheme (IDE-level scheme), the settings that you configure apply to all existing projects that have the Default code style scheme selected. These settings are stored in the codestyles folder under the IntelliJ ...
Author: square
🌐
JetBrains
jetbrains.com › help › idea › code-style.html
Code style and formatting | IntelliJ IDEA Documentation
February 11, 2024 - If a company has certain coding guidelines, you have to follow them when creating source code. IntelliJ IDEA helps you maintain the required code style by formatting your code for you according to the code style rules.
🌐
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 - Next to the Scheme drop-down menu select the gear icon then Import Scheme > IntelliJ IDEA code style XML then select the intellij-java-google-style.xml file you downloaded from GitHub.
🌐
JetBrains
blog.jetbrains.com › home › intellij idea › how to format java code
How to Format Java Code - The JetBrains Blog
June 6, 2024 - IntelliJ IDEA also supports using an EditorConfig file to define the code style. You can create a new EditorConfig file by right-clicking on the .idea folder and then selecting New | New EditorConfig File.
Find elsewhere
🌐
CodeGym
codegym.cc › java blog › random › intellij idea: coding style and code formatting
IntelliJ IDEA: Coding style and code formatting
December 19, 2023 - Choose File -> Settings in the IDEA menu (or press Ctrl+Alt+S). Enter "Code style" in the search field in the settings window. In the "Code style" section, you can specify settings for more languages than just Java.
🌐
GitHub
github.com › duraspace › codestyle › blob › master › ide-support › intellij.md
codestyle/ide-support/intellij.md at master · duraspace/codestyle
File → Settings → Editor → Code Style → Java → Tabs and Indents ... Open up any Java source file in IntelliJ. You will see Checkstyle warnings appear (if any) in RED. This highlighting is enabled via the checkstyle plugin.
Author: duraspace
🌐
Medium
medium.com › @AlexanderObregon › intellij-ideas-code-style-features-creating-consistent-and-clean-code-bd1c32df8285
IntelliJ IDEA’s Code Style Features — Creating Consistent and Clean Code
April 29, 2024 - IntelliJ IDEA allows you to configure the coding style according to your preferences or team standards. Go to File > Settings > Editor > Code Style. Here, you can set rules for different languages.
🌐
GitHub
github.com › JonathanGiles › java-code-styles
GitHub - JonathanGiles/java-code-styles: IntelliJ IDEA code style settings · GitHub
Open IntelliJ Settings (Ctrl+Alt+s) -> Editor -> Code Styles -> Java, change the scheme dropdown to Microsoft.
Forked by 4 users
🌐
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 ...
🌐
Xwiki
dev.xwiki.org › xwiki › bin › view › Community › CodeStyle › JavaCodeStyle
Java Code Style - XWiki
August 3, 2026 - You can enable "Automatically add ... you want to document. ... Download codestyle-idea.xml. Go to IntelliJ's File > Settings and to Editor > Code Style and select Import Scheme > IntelliJ IDEA Code Style XML as shown on...
🌐
Lean Tactic Reference
course.ccs.neu.edu › cs5004 › code-style.html
Code style
All the assignments in this course ... that you enforce this style for all source code! Download the style file intellij-java-google-style.xml. Follow the tutorial video for IntelliJ from 20:43 to 28:12. A summary: For Intellij IDEA, download intellij-java-google-style.xml and ...
🌐
JetBrains
jetbrains.com › idea › guide › tips › adjust-code-style
Adjust Code Style - JetBrains Guide
February 17, 2023 - editing java · You can use ⌥⏎ (macOS) / Alt+Enter (Windows/Linux), to show context actions for your selection and then edit the code style. See Also · (video) Code Formatting in IntelliJ IDEA · (documentation) IntelliJ IDEA Help - Configuring ...
Author: Piasy