点击菜单栏中的文件--》首选项--》设置,然后搜索下图中的关键字,就可以设置了

vscodevscode设置缩进2个空格或者设置空格4

请注意我标记的内容,如果只是修改了"editor.tabSize": 4,在 `editor.detectIndentation` 启用时,根据文件内容,该设置可能会被覆盖,所以你应该同时做到"editor.detectIndentation":false,不让其启动

相关文章:

  • 2021-11-16
  • 2022-12-23
  • 2021-09-27
  • 2021-12-08
  • 2021-05-22
  • 2021-11-08
  • 2021-09-18
猜你喜欢
  • 2021-08-17
  • 2022-01-01
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案