VSCode opens new files in Tabs mode (bottom status line shows "Tab Size") even though I have setting "Insert Spaces" on and "Detect Indentation" off. How can I change this?
Question posted in Visual Studio Code
View the official documentation.
View the official documentation.
2
Answers
Workspace-Specific settings (VS Code)
Check if you have
.vscode/settings.json
in your project folder..vscode/settings.json
file:.editorconfig file
This file can exist at the root of your project (for project-specific settings) or in your user’s home directory (for user-wide preferences).
This can override any editor-specific settings and enforce consistent indentation rules across all supported editors and IDEs.
.editorconfig
file:关闭自动检测文件内容,即可默认使用空格,设置里面的 Editor: Detect Indentation