前言
![87977950_p0](/2023/05/26/vscode%E5%85%B3%E4%BA%8Etab%E7%BC%A9%E8%BF%9B%E7%A9%BA%E6%A0%BC/87977950_p0.jpg)
pid: 87977950
VSCode的Tab代码缩进比较混乱,设置一下会比较好
现在的代码规范基本是使用空格作为Tab使用
GUI设置
Ctrl+,
打开设置Tab设置为4空格
1
editor.tabSize
按下Tab时插入空格
1
editor.insertSpaces
关闭detect Indentation
1
editor.detectIndentation
保存文件时删除行末空格
1
files.trimTrailingWhitespace
编辑器中显示空格、Tab符号
1
renderControlCharacters
1
renderWhitespace
选择all显示全部空格
使用setting.json设置
1 | "editor.tabSize": 4,//tab为四个空格 |
后记
VSCode真的是越用越好用啊
♥️ 来自 🇨🇳