vscode设置两个字符缩进

743 阅读1分钟

前言

vscode默认缩进四个字符。当回车/tab时,会发现缩进四个字符。

一、修改tabsize

如图,改为2

image.png

二、修改Detect Indentation

如图,勾选上

image.png