答案 0 :(得分:1)
将此添加到您的settings.json
"workbench.editor.labelFormat": "short",
来自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",