Just enable it... ;)

(Unfortunately the setting is off by default.)

Menu SettingsEditorCode Style.

Checkbox Enable EditorConfig support

Answer from Michal Miky Jankovský on Stack Overflow
🌐
JetBrains
jetbrains.com › help › idea › editorconfig.html
EditorConfig | IntelliJ IDEA Documentation
In the Project tool window (Alt+1) , right-click a sourcethe directory containing the files whose code style you want to define and select New | EditorConfig from the context menu.
🌐
JetBrains
plugins.jetbrains.com › plugin › 7294-editorconfig
EditorConfig - IntelliJ IDEs Plugin | Marketplace
Handles properties in .editorconfig files and applies them to all supported languages in all JetBrains IDEs. Features Code assistance for all supported properties...
🌐
JetBrains
jetbrains.com › guide › java › tutorials › reformatting-code › working-with-editor-configs
Working with EditorConfigs - JetBrains Guide
February 17, 2023 - When you press Enter you will get the choice to configure your new .editorconfig file. You can select the properties you want to define and IntelliJ IDEA will create stubs for them.
🌐
GitHub
github.com › JetBrains › intellij-community › blob › master › .editorconfig
intellij-community/.editorconfig at master · JetBrains/intellij-community
IntelliJ IDEA & IntelliJ Platform. Contribute to JetBrains/intellij-community development by creating an account on GitHub.
Author: JetBrains
🌐
EditorConfig
editorconfig.org
EditorConfig
These editors come bundled with native support for EditorConfig. Everything should just work. BBEdit · Code Crusader · CodeLite · elementary Code · EmEditor · Kangaroo · GNOME Builder · Gitea · GitHub · GitLab · GitBucket · Gogs · Helix · intelliJ ·
🌐
JetBrains
jetbrains.com › help › idea › configuring-code-style.html
Code style schemes | IntelliJ IDEA Documentation
1 month ago - You can export both project-level and IDE-level schemes in the IntelliJ IDEA code style XML, Eclipse XML Profile, or EditorConfig format (if the EditorConfig plugin is enabled).
Find elsewhere
🌐
JetBrains
blog.jetbrains.com › idea › 2019 › 06 › managing-code-style-on-a-directory-level-with-editorconfig
Managing Code Style on a Directory Level with EditorConfig | The IntelliJ IDEA Blog
August 21, 2019 - As we announced a short while ago, in the upcoming version 2019.2, IntelliJ IDEA and other IntelliJ-based IDEs are extending EditorConfig support, thus allowing you to manage all code style settings for each set of files individually. All you need to do is place an .editorconfig file in the root directory containing the files whose code style you want to define.
🌐
Reflectoring
reflectoring.io › painless-code-formatting-with-editor-config
Painless Code Formatting with EditorConfig
February 15, 2021 - With EditorConfig, we can define whether we want our indentation style to be tabs or spaces, what should be the indentation size (the most common size I have seen is 4), and other properties that we will be discussing in the next section. Since there are lot of IDEs and we cannot touch all of them, I have selected two IDEs: IntelliJ IDEA, which comes with native support for EditorConfig and
🌐
Reddit
reddit.com › r/intellijidea › editorconfig on intellij for java projects
r/IntelliJIDEA on Reddit: Editorconfig on IntelliJ for Java projects
July 21, 2020 -

Hi,

I just got familiar with editorconfig and I am trying to make a good configuration file that I am going to use in multiple java projects.

I saw that IntelliJ has it's own properties and quite a big list, which is great, but I can't seem to find any explanation for all these properties.
Can someone point a documentation link or something that will help me with this.

Thanks

🌐
Maven Repository
mvnrepository.com › artifact › com.jetbrains.intellij.editorconfig › editorconfig
Maven Repository: com.jetbrains.intellij.editorconfig » editorconfig
April 28, 2026 - JetBrains IntelliJ EditorConfig · com.jetbrains.intellij.editorconfig · Description · JetBrains IntelliJ EditorConfig · Links · Maven Plugins · Testing · Android Packages · Language Runtime · JVM Languages · Logging Frameworks · JSON Libraries · Java Specifications ·
🌐
JetBrains
jetbrains.com › help › rider › Using_EditorConfig.html
Use EditorConfig | JetBrains Rider Documentation
August 10, 2026 - EditorConfig is a configuration file convention that is used to define and maintain consistent code styles between team members working on the same code as well as between different IDEs that they might use.
🌐
DZone
dzone.com › coding › tools › managing code style on a directory level with editorconfig
Managing Code Style on a Directory Level With EditorConfig
July 5, 2019 - As JetBrains announced a short while ago, in the upcoming version 2019.2, IntelliJ IDEA and other IntelliJ-based IDEs are extending EditorConfig support, thus allowing you to manage all code style settings for each set of files individually. All you need to do is place an .editorconfig file in the root directory containing the files whose code style you want to define.
🌐
Reddit
reddit.com › r/intellijidea › editorconfig and javascript
r/IntelliJIDEA on Reddit: EditorConfig and javascript
June 25, 2019 -

I have a javascript/apex project. I've created a editorconfig file but it only works for apex not for javascript. My config:

[*]
indent_style = tab

When I reformat the code javascript stays indented with spaces

Edit: After trying to do the same in vs code it works. So it looks like intellijs fault

Top answer
1 of 1
1
Did you follow these steps from the help pages ? Configure the code style for a project using EditorConfig Before you start working with EditorConfig, make sure that the EditorConfig plugin is enabled. The plugin is bundled with IntelliJ IDEA and is activated by default. If the plugin is not activated, enable it on the Plugins page of the Settings / Preferences Dialog as described in Managing plugins. In the Settings/Preferences dialog (Ctrl+Alt+S), go to Editor | Code Styleand make sure the Enable EditorConfig Support checkbox is selected. 2. In the project tree, right-click a directory where you want to create the EditorConfig settings file and select New | File. 3. In the dialog that opens, enter .editorconfig and click OK. 4. IntelliJ IDEA creates an EditorConfig settings file and displays a notification in the popup. Every time you open a file, the EditorConfig plugin looks for a file named .editorconfig in the directory of the opened file and in every parent directory. A search for .editorconfig files will stop if the root file path is reached or an EditorConfig file with root = true is found. Therefore, if you want to use the IDE settings instead of the EditorConfig settings, clear the Enable EditConfig Support checkbox in Editor | Code Stylethat is selected by default. Define the code style settings and save your .editorconfig (Ctrl+S) to immediately apply the settings to your project. The EditorConfig code style configuration overrides the code style configuration in the IntelliJ IDEA settings.
🌐
JetBrains
blog.jetbrains.com › idea › tag › editorconfig
EditorConfig : The IntelliJ IDEA Blog | The JetBrains Blog
June 28, 2019 - As we announced a short while ago, in the upcoming version 2019.2, IntelliJ IDEA and other IntelliJ-based IDEs are extending EditorConfig support, thus allowing you to manage all code style settings for each set of files individually.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 16454308467986--editorconfig-and-IntelliJ-Reformat-Code
.editorconfig and IntelliJ -> Reformat Code – IDEs Support (IntelliJ Platform) | JetBrains
January 18, 2024 - I am considering using the [`.editorconfig`](https://editorconfig.org/) file for this purpose. ```lang-toml # Sample generated with IntelliJ # and https://github.com/hjhgitw/oshi/blob/master/.editorconfig root = true
Starred by 290 users
Forked by 20 users
Languages: Java 100.0% | Java 100.0%
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 207009225-EditorConfig-is-overriding-code-style-settings-for-this-file
EditorConfig is overriding code style settings for this file – IDEs Support (IntelliJ Platform) | JetBrains
1) If you click on "Dismiss" nothing will happen -- supported settings from .editorconfig will be taken instead of the same settings in your Code Style 2) If you click on "Disable..." the support for .editorconfig settings will be disabled (can be re-enabled again at "Settings (Preferences on Mac) | Editor | Code Style") and only your Code Style settings will matter https://www.jetbrains.com/phpstorm/help/code-style.html#d536811e422