visual-studio-code

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


Solution

  • 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