仅显示父文件夹名称?

时间:2020-06-25 07:20:38

标签: visual-studio-code vscode-settings

如何在编辑器选项卡中仅显示父文件夹名称?不是文件和父文件夹,像这样:

enter image description here

1 个答案:

答案 0 :(得分:1)

将此添加到您的settings.json

"workbench.editor.labelFormat": "short",

tabs

来自VSCode文档

// Controls the format of the label for an editor. Changing this setting can for example make it easier to understand the location of a file:
// - short:   'parent'
// - medium:  'workspace/src/parent'
// - long:    '/home/user/workspace/src/parent'
// - default: '.../parent', when another tab shares the same title, or the relative workspace path if tabs are disabled
"workbench.editor.labelFormat": "default",