英文:
How can I remove the file name from the top bar of the VS Code window?
问题
有没有办法移除顶部栏中的文件名?它就在菜单栏旁边,我怀疑文件名是导致菜单栏的一部分被隐藏的原因(三个点在那里)。
英文:
Is there a way to remove the file name in the top bar? It is right next to the menu bar and I suspect that the file name is the reason why part of the menu bar is hidden (the three dots are there).
答案1
得分: 1
在你的settings.json中添加以下内容:
"window.title": " "
如果你将它设置为空字符串而不是一个空格,它将显示"Visual Studio Code"。
或者,你可以更高级一些,使用Unicode的"Zero Width Space"字符(U+200B
):
"window.title": ""
上面的字符串中实际上包含一个字符,但你几乎看不到它,因为它是一个零宽度的空格:P
英文:
Put the following in your settings.json:
"window.title": " "
If you set it as an empty string instead of a space, it will instead display "Visual Studio Code".
Alternatively, you could be fancier and use the unicode "Zero Width Space" character (U+200B
)
"window.title": ""
You can't really tell there's a character in the string above because- well- it's a space with zero width
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论