Update current indent space size in WebStorm 2016

I need to switch from a two-dimensional indentation style to 4 spaces as part of an automatically created Ionic project.

I am running WebStorm 2016.1 on Mac OS X.

I already tried to change:

WebStorm | Settings | Code Style | Javascript | Tabs and indents

and play with the size of the indent, the size of the tab, use the tab character, etc., but no changes affect the existing (and new) JavaScript files.

Any idea on how to achieve it? Could there be some general setup so that these changes do not take effect?

+6
source share
1 answer

Do you have a .editorconfig file in your project? Settings from there, your code style settings will be overwritten (and this is the expected behavior - this is the whole nature / purpose of the EditorConfig plugin).


PS IDE should notify you of this behavior (for me). For instance:

enter image description here

enter image description here

+12
source

All Articles