vscode tab转空格

前言

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

步骤

进入设置并搜索tab

配置设置

复制相应的设置

写入到json文件中

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

直接修改

点击更改视图配置空格

转载于:https://www.cnblogs.com/wangyang0210/p/10807537.html

posted @ 2021-05-26 14:41  limeiwang  阅读(260)  评论(0编辑  收藏  举报