我浪费了我的一整天,我不明白发生了什么。我正在使用 Visual Studio Code 1.40.2 并且正在学习 Flutter 3.60。有时 Flutter 代码会因为缩进空间而变得不可读。我只想创建更多空间(缩进空间),但是当我使用格式选项时,标签大小又变成了 2。我看了太多的网站,包括 Stackoverflow,不幸的是我没有找到解决方案。它变得很烦人。这是我的配置文件:(感谢帮助)
{
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"editor.fontSize": 18,
"editor.fontFamily": "Consolas, 'Courier New', monospace, ",
"dart.openDevTools": "flutter",
"workbench.colorTheme": "Night Owl (No Italics)",
"workbench.iconTheme": "material-icon-theme",
"editor.fastScrollSensitivity": 8,
"editor.tabSize": 8,
"editor.insertSpaces": true,
"editor.wordWrap": "on",
"editor.smoothScrolling": true,
"editor.cursorBlinking": "expand",
"editor.cursorSmoothCaretAnimation": true,
"editor.fontWeight": "400",
"outline.showFields": false,
"[dart]": {
"editor.tabSize": 6,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
},
Run Code Online (Sandbox Code Playgroud)
}
我添加了这个块但没有用。
"[flutter]": { "editor.tabSize": 6, "editor.insertSpaces": true, "editor.detectIndentation": …