Ubuntu中,VS Code预览窗口显示根目录名。
- Open Visual Studio Code.
- Open the Command Palette by pressing
Ctrl+Shift+P. - Type "Open Settings (JSON)" and select it from the list.
- In the
settings.jsonfile, add the following line:"window.title": "${dirty}${separator}${rootName}", - Save the file.