为了规范写法,开启了eslint,但是tab没设置转空格,这里记录下设置过程。

步骤

进入设置并搜索tab

vscode——tab转空格

 

配置设置

复制相应的设置

vscode——tab转空格

写入到json文件中

"editor.detectIndentation": false,  //关闭检测第一个tab后面就tab
"editor.renderControlCharacters": true, //制表符显示->
"editor.renderWhitespace": "all", //空格显示...
"editor.tabSize": 4,//tab为四个空格
"editor.insertSpaces": true //转为空格

 

直接修改

vscode——tab转空格

点击更改视图配置空格

vscode——tab转空格

 

相关文章:

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