Hivaga
Hivaga

Reputation: 4516

WebStorm 2016.2.0 is adding two space-bars instead of a tab character

Currently when I edit some file in WebStorm 2016.2.0 and I press tab, WebStrom is actually adding 2 space bars. There should be a setting somewhere in the editor for this. I want to have tab character instead the default 2 space-bars, my question is how to do this ?

Upvotes: 1

Views: 96

Answers (1)

Cosmin Ababei
Cosmin Ababei

Reputation: 7072

You can change this option for each of the supported languages at:

Settings > Editor > Code Style > [Choose your language] > Tabs and Indents > Use tab character

Or you can add a .editorconfig file in the root of your project to set your preferences globally. All that you'll need to write in it is indent_style = tab

Upvotes: 1

Related Questions