Dalibor Pavlik
Dalibor Pavlik

Reputation: 327

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).

screenshot of window's top bar text, and shortened menu with three dots button to see more

Upvotes: 1

Views: 827

Answers (2)

rakslice
rakslice

Reputation: 8975

If you go to File -> Preferences -> Settings and search for "window title", in addition to letting you edit the format string for the window title (which becomes window.title), it gives you a list of the format string placeholders you can use in it.

Upvotes: 0

starball
starball

Reputation: 50098

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 :P

Upvotes: 2

Related Questions