VSCode增加文件树目录缩进

Posted by Kerwen Blog on November 23, 2022

Go to File > Preference > Settings and choose:

Workbench › Tree: Indent

Controls tree indentation in pixels.

or (in your settings.json enter this directly)

1
"workbench.tree.indent": 20

you can add colorized tree indent guides to make the explorer file structure more obvious.

1
2
3
4
{                                         // in settings.json
"workbench.colorCustomizations": {
    "tree.indentGuidesStroke": "#00ff00"
}