How to stop auto-indent on WebStorm IDE
Disabling auto-indent on WebStorm
WebStorm is quite a different editor than Visual Studio. For one thing it saves automatically files after you make changes. There is no save button ! This can be good or anoying.. I guess it was the preference of the original creator.
Another very annoying thing is the tab size and indentation. Not only it does not auto-detect your current file / project tab size and auto-indent as soon as you write a closing }, and you cannot even hit Ctrl-Z to step backward just the indentation step : it also removes the } you wrote - meaning there is no way to write a closing } without doing the auto-indentation reformating - unless you disable the feature competely :
Disable auto-indent
File | Settings | (IDE Settings) Editor | SmartKeys > Reformat block on typing '}'
Recent Comments