如何在文件树结构中添加更多缩进?它有一点缩进,我想增加一点,就像NetBeans一样。
检查图像
如何在文件树结构中添加更多缩进?它有一点缩进,我想增加一点,就像NetBeans一样。
检查图像
当前回答
截至Visual Studio Code版本:1.59.0+
你必须去:代码(在菜单栏上)>首选项>[用户菜单]>外观>树:缩进
我把它设置为22。
其他回答
截至Visual Studio Code版本:1.59.0+
你必须去:代码(在菜单栏上)>首选项>[用户菜单]>外观>树:缩进
我把它设置为22。
除了其他涉及设置文件的答案,缩进也可以在文件/首选项/设置GUI中更改:
如果你只是想改变缩进,你可以设置这些选项: 按Ctrl+Shift+P ->进入首选项:打开设置(JSON)
"workbench.tree.indent": 18,
你也可以添加指导方针:
"workbench.tree.renderIndentGuides": "always",
你也可以使用以下方法改变它们的颜色:
"workbench.colorCustomizations": {
"tree.indentGuidesStroke": "#008070"
},
对于Mac,使用你的菜单栏
Code > Preferences > Settings
然后在搜索设置中键入:树或转到
树:缩进(以像素为单位控制树的缩进)
并设置您首选的缩进
{
"workbench.tree.indent": 20, // just paste this line of code in setting.json file
"editor.mouseWheelZoom": true // for zoom in & out font size with Ctrl+ mouse scroll
}