WebStorm 2016.2.0 正在添加两个 space-bars 而不是制表符

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

目前,当我在 WebStorm 2016.2.0 中编辑一些文件并按下 Tab 键时,WebStrom 实际上添加了 2 个 space 条。为此,编辑器中的某处应该有一个设置。我想要制表符而不是默认的 2 space-bars,我的问题是如何做到这一点?

您可以在以下位置为每种受支持的语言更改此选项:

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

或者您可以在项目的根目录中添加一个 .editorconfig 文件来全局设置您的首选项。您只需要在其中写入 indent_style = tab