上图默认选中的2, 点击第四行后,状态栏如下:

单个页面的设置

首先在状态栏上可以看到缩进的是几个空格,如下图:

 

 

设置vscode缩进的空格数

 

 

上图是2个空格,如何设置4个空格,点击上图的 “Spaces: 2”, 弹出下图

 

设置vscode缩进的空格数

 

点击上图的 “Indent Using Spaces”

 

设置vscode缩进的空格数

 

 

上图默认选中的2, 点击第四行后,缩进到空格数变成4

 

 

全局设置:

 

选择/Code-》首选项=》设置

设置vscode缩进的空格数

 

 

 

 

相关文章:

  • 2022-01-01
  • 2021-07-27
  • 2022-12-23
  • 2021-10-06
  • 2021-11-08
  • 2022-12-23
  • 2021-09-28
  • 2021-07-22
猜你喜欢
  • 2021-09-14
  • 2021-05-22
  • 2021-12-08
  • 2021-11-08
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
相关资源
相似解决方案