How to apply .editorconfig to an existing project in IntelliJ IDEA
configuration, editorconfig, formatting, intellij-idea
Solution
Just enable it... ;)
(Unfortunately the setting is off by default.)
Menu Settings → Editor → Code Style.
Checkbox Enable EditorConfig support
Problem
I have created a .editorconfig file as shown below for IntelliJ IDEA. ``` # editorconfig.org root = true [*] charset = utf-8 insert_final_newline = true trim_trailing_whitespace = true end_of_line = lf indent_style = space indent_size = 4 [*.js] indent_size = 4 [{package.json}] indent_style = space indent_size = 4 ``` How do I apply this code style to all the files in one go? Right now, I will open a file and press Ctrl + Alt + l which will do the job for that file, but is there a way to apply this as the configuration for all the application in IntelliJ IDEA 14?