Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用选项卡大小为 4 的编程语言,但是当我想打开一个.txt文件时,我希望选项卡大小为 8,可以为不同的文件类型或不同的语言指定不同的选项卡大小在 VS 代码中?我只知道首选项中的选项可以将任何文件中的值更改为那里的值。
.txt
我相信语言特定的设置是您正在寻找的。尝试添加
"[plaintext]": { "editor.tabSize": 8 }
到你的settings.json文件。
settings.json