1、点击“文件》首选项》设置” 进入设置页面,设置如下几个选项

vscode 的tab空格设置设置为4的方法

2、在“文件》首选项》设置” 的“用户设置”里添加

"editor.detectIndentation": false,
"editor.renderControlCharacters": true,
"editor.renderWhitespace": "all",
 
第一个改成false目的是:不要检测到第一个是tab,就后面都用tab,这样会覆盖默认设置。
第2 3个显示 制表符是→   4个空格是....

相关文章:

  • 2021-11-09
  • 2021-08-02
  • 2022-01-01
  • 2021-10-26
  • 2021-11-09
  • 2021-11-09
  • 2021-10-04
猜你喜欢
  • 2021-11-09
  • 2021-06-09
  • 2022-12-23
  • 2021-09-28
  • 2021-09-23
  • 2021-11-09
相关资源
相似解决方案