2017-10-09 4 views
0

HTMLタグを閉じるとき(現在の位置が最初の列に移動され、タブのインデントが削除されます)その後、タブで手動でインデントする必要があります。どうすれば修正できますか?HTMLコードがVSコードで閉じるときに手動でインデントする必要があります。

GIF Example - please click here…

マイsettings.jsonファイル:あなたのsettings.json

 
... 
"editor.detectIndentation": false, 
"editor.wrappingIndent": "none", 
"editor.trimAutoWhitespace": false, 
"files.trimTrailingWhitespace": false, 
"files.insertFinalNewline": true, 
"html.format.endWithNewline": false, 
... 
+0

'' editor.detectIndentation ":false、'があなたの問題です。それを「真」にする – ifconfig

答えて

0

"editor.detectIndentation": falseは、あなたの問題です。それをtrueにしてください。

すなわち

... 
"editor.detectIndentation": true, 
"editor.wrappingIndent": "none", 
"editor.trimAutoWhitespace": false, 
"files.trimTrailingWhitespace": false, 
"files.insertFinalNewline": true, 
"html.format.endWithNewline": false, 
... 
2

私はにsettings.jsonのオプションを設定します。

 

    "editor.detectIndentation": true, 
    "editor.autoIndent": false 

そして、それは今働いています。一定。

関連する問題