Convert spaces to tabs
问题 I'm writing TypeScript and HTML files, and tabs gets converted to spaces. In my TypeScript project, every tab converts to spaces, I want to turn it off, and have a tab instead of spaces. This is my settings: { "editor.insertSpaces": false } EDIT 1: It seems to work in .html files, but not in .ts files. 回答1: There are 3 options in .vscode/settings.json : // The number of spaces a tab is equal to. "editor.tabSize": 4, // Insert spaces when pressing Tab. "editor.insertSpaces": true, // When