简体   繁体   中英

Visual Studio Code: How do I display the file directory in the tab for all files?

When I have two files with the same name VS Code will display the file directory next to the file name like this 在此处输入图片说明

How do I configure VS Code to display it for all the files? even if there aren't other files with the same name?

Settings.json:

// Controls the format of the label for an editor.

// - default: Show the name of the file. When tabs are enabled and two files have the same name in one group the distinguishing sections of each file's path are added. When tabs are disabled, the path relative to the workspace folder is shown if the editor is active.

// - short: Show the name of the file followed by its directory name.
// - medium: Show the name of the file followed by its path relative to the workspace folder.
// - long: Show the name of the file followed by its absolute path.

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

Change the default setting to short .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM