If you go to the Preferences -> Editor -> Code Style, there is a combo box at the top to choose to apply code style settings to the Project only, or at the global level.

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.
JetBrains
jetbrains.com › help › idea › settings-code-style.html
Code Style | IntelliJ IDEA Documentation
1 month ago - Code style scheme settings are automatically applied every time IntelliJ IDEA generates, refactors, or reformats your code. The IDE comes with two pre-defined schemes: the Project scheme and the Default scheme. In the Project scheme, the settings that you configure apply only to your current project. 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.
20:02
Intellij Mikes Code Style Get It For Free Today - YouTube
00:31
How to format code in Intellij - YouTube
13:17
Code Formatting in IntelliJ IDEA (2020) - YouTube
07:41
How to reformat code in Android Studio and IntelliJ - Android Studio ...
09:31
Adding Google Code Formatter to the intellij IDEA - YouTube
Change code style settings without using the 'Settings' dialog window.
JetBrains
jetbrains.com › help › idea › code-style.html
Code style and formatting | IntelliJ IDEA Documentation
February 11, 2024 - IntelliJ IDEA offers two ways of defining code style rules. You can use code style schemes: groups of settings that you can configure using the IDE interface, export, and share with other members of your team.
CodeGym
codegym.cc › java blog › random › intellij idea: coding style and code formatting
IntelliJ IDEA: Coding style and code formatting
December 19, 2023 - To make a "custom" scheme, use the button on the right to make a copy and give it a name, for example: CodeGym Then that we can import or export the settings: Another option is to import IDEA settings: A third option is the Settings Repository. To use the Settings Repository, see the IntelliJ IDEA Help documentation for more details at the following link: Settings Repository". Speaking of pushing a unified style on a team, I also can't help but mention the good support for styles from the Eclipse IDE.
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 - One of its strengths lies in its code style features which help in creating consistent and clean code. This article explores the various code style features IntelliJ IDEA offers. Code formatting refers to the visual organization of the source code. Proper indentation, spacing, and alignment make the code easier to read.
Lean Tactic Reference
course.ccs.neu.edu › cs5010f18 › code-style.html
Code style
From IntelliJ, go to File > Other ... If you’ve already created a project, then you’ll additionally need to set this as the project style, using File > Settings....
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
blog.jetbrains.com › home › intellij idea › how to format java code
How to Format Java Code - The JetBrains Blog
June 6, 2024 - IntelliJ IDEA offers a lot of automation and configuration features that let us define exactly how our files should be formatted, and it even lets us specify the order in which things appear in our code files. This lets us customize a consistent style for our project and makes it easier to write code that’s consistent with that of the rest of our team.
JetBrains
jetbrains.com › help › idea › settings-code-style-other-file-types.html
Other File Types | IntelliJ IDEA Documentation
October 8, 2024 - Code style scheme settings are automatically applied every time IntelliJ IDEA generates, refactors, or reformats your code. The IDE comes with two pre-defined schemes: the Project scheme and the Default scheme. In the Project scheme, the settings that you configure apply only to your current project. 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.
Starred by 31 users
Forked by 14 users
Languages: Shell 74.6% | Batchfile 25.4%
JetBrains
jetbrains.com › help › idea › reformat-and-rearrange-code.html
Reformat code | IntelliJ IDEA Documentation
1 month ago - IntelliJ IDEA lets you reformat your code according to the requirements you have specified in your current code style scheme or the .editorconfig file. If anything is not defined in .editorconfig, it is taken from the project settings.
Codemia
codemia.io › home › knowledge hub › intellij idea, format all code in a project
Intellij IDEA, format all code in a project | Codemia
July 31, 2025 - Here is an example of setting up a basic code style convention: Indentation: Set to 4 spaces. Braces: Place opening braces on the next line. Continuations Indent: Set to 8 spaces. These settings ensure uniformity across codebases, which is especially beneficial in team environments. JetBrains Documentation: For a comprehensive guide, the official JetBrains Documentation provides a wealth of information. Community Plugins: IntelliJ IDEA has a vibrant community, and numerous plugins are available in the JetBrains Marketplace to extend its capabilities.
Top answer 1 of 2
5
The default selection is Intellij built-in code style. It's not Sun or Google scheme, it's a different one.
2 of 2
0
You can set a certain scheme to be a project level or the IDE level. Project-level is applied only for current project - IDE-level will be used by all the projects. Default is the IDE level scheme.
Check also the documentation about managing code styles in IDE.
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360010865000-Storing-code-style-in-project-in-Ultimate-2021-1
Storing code style in project, in Ultimate 2021.1 – IDEs Support (IntelliJ Platform) | JetBrains
Please see https://www.jetbrains.com/help/idea/sharing-your-ide-settings.html#f3f211a9 . The settings you can sync include IDE themes, keymaps, color schemes, system settings, UI settings, menus and toolbars settings, project view settings, editor settings, code completion settings, parameter name hints, live templates, code styles, and the list of enabled and disabled plugins. ... Thank you for your suggestion.