前言
為了規范寫法,開啟了eslint,但是tab沒設置轉空格,這里記錄下設置過程。
步驟
進入設置並搜索tab
配置設置
復制相應的設置
寫入到json文件中
"editor.detectIndentation": false, //關閉檢測第一個tab后面就tab
"editor.renderControlCharacters": true, //制表符顯示->
"editor.renderWhitespace": "all", //空格顯示...
"editor.tabSize": 4,//tab為四個空格
"editor.insertSpaces": true //轉為空格
直接修改
點擊更改視圖配置空格