EditorConfig doesn't work in WebStorm 2019.2 关注
here is my .editorconfig file content
root = true
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
trim_trailing_whitespace = false
when I update WebStorm from 2019.1.4 to 2019.2
EditorConfig doesn't wort.
I use Ctrl+Alt+L to format my code，but indentation become 4!
check my settings
indent is 4.
but why it was not overridden by editorConfig?
And the warning in red mark is ?
env: windows 10, webstorm 2019.2 build #WS-192.5728.87
what should i do?
What files do you work with? It works fine for me when editing .js files
Same issue for me when I coding .vue files. I tried .js and it worked fine.
But .vue files used to work with .editorconfig well before too.
This happens after I updated to 2019.2. Is this Vue plugin's problem?
@k.kino https://youtrack.jetbrains.com/issue/WEB-40499 is fixed in 2019.2.1
Forgot to mention minor version, but I'm actually using 2019.2.1 :/
I just checked again and it still happens for .vue file.
Oh yea sorry, I'm not using Webstorm. I meant IntelliJ Ultimate 2019.2.1
Yes, indeed:( Please follow https://youtrack.jetbrains.com/issue/WEB-40900 for updates
EditorConfig doesn't work with .sh files.
Here is my config:
https://youtrack.jetbrains.com/issue/IDEA-221628 is fixed in 2019.3, and I've just checked that it indeed works with your config in 2019.3.3.
Did you install the shfmt? it's required for the formatter to work. PhpStorm normally prompts installing it when you reformat the code
I am having the same issue on Rubymine 2019.3.3, using Windows 10 version 1909, with shfmt v3.0.2 installed through scoop.
My `.editorconfig` file content:
indent_style = space
indent_size = 4
Enable EditorConfig support is enabled in the settings, but changing `indent_size` does not have not have any effect when applying Reformat Code.
I am having the same issue with SQL files in Intellij IDEA Ultimate 2019.3.3.
My .editorconfig is
And I have enabled editorconfig support as the previous post for the SQL dialect I'm using (Postgres).
The editorconfig settings are not having any effect on the SQL editor formatting.