EditorConfig for VS Code not working
MY OWN SOLUTION:
The problem I had was, that I added the extension editorconfig
to my vscode
, but didn't install the npm package
for it. So it's not enough, to add the extension only to your vscode, you have also to install the package, so it could run.
I installed the npm package
global like this: npm install -g editorconfig
After that I added the extension and enabled it. Now it works perfect.
Here is the link to the required npm package: https://www.npmjs.com/package/editorconfig
Here is the link to the required extenion for your vscode: https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig
In addition all of the above I also needed to turn on the Editor Format on Save option.
{
"editor.formatOnSave": true
}