Visual Studio Code settings ignore project files

时间:2016-04-15 14:55:49

标签: visual-studio-code

I've noticed that in my project, my project files don't adhere to the settings. EG tab == 4 spaces. Tabs are only adding 2 spaces. The settings file does it properly. It uses 4 spaces with I hit tab. Do I need to add something to include the project files? I've tried adding this to my user settings. I also added this to the workspace settings but it still didn't seem to work.

"editor.insertSpaces": false,
"editor.tabSize": 4,

and tried using true as well. It just doesn't do it. The project files seem to be ignored. Is there some place I can fix this?

1 个答案:

答案 0 :(得分:1)

您还需要设置"editor.detectIndentation": false,,否则程序会根据打开的文件自动检测缩进。 Documentation有默认文件,可以帮助其他任何设置。