68

When not using tabs in Visual Studio Code, it still shows a bar with the name of the currently open file.

Editor title bar

Is there a way to disable this bar completely?

6 Answers 6

160

You can use this setting to hide the title bar: "window.titleBarStyle": "custom". It can be accessed via menu FilePreferencesSettingsWindowTitle Bar Style and set it to custom.

9
  • 2
    There are 34 matches for "Window" (version 1.47.3). "Title Bar Style" is 2/3 down (scrolling required). Commented Aug 3, 2020 at 1:09
  • 3
    The awesome customization features of vscode once again to the rescue. Commented Dec 18, 2020 at 18:51
  • 7
    As of today, this does not hide the title bar, but actually set it to a custom style, which looks sort of windowsy (VSCodium v1.56.2 on Manjaro Gnome)
    – mcnesium
    Commented May 28, 2021 at 9:18
  • 2
    This does not work as of now, at least for Linux Mint. It just changes the style.
    – gxp2
    Commented Jul 23, 2021 at 20:51
  • 3
    I am afraid this isn't working on VsCode 1.57.1 (Big Sur) Commented Sep 15, 2021 at 4:08
5

I tried all the aforementioned tips, without success in hiding the window titlebar.

However, I did find a solution, here: https://github.com/microsoft/vscode/issues/174903#issuecomment-1762118744

(and the reply from ryanberckmans above in that thread)

It involves using the apc customize++ plugin to vs code and adding settings to control it, to your user settings.json.

The thread has atleast two different settings proposals, for me, the one I linked to worked (he links to his settings file at the end of his reply).

So:

  1. Install vs code extension Apc Customize UI++
  2. Add this to your user settings.json file:

  // ================================================================================
  // APC - UI Customizer
  // ================================================================================
  "window.titleBarStyle": "native",
  "apc.menubar.compact": true,
  "apc.electron": {
    "frame": false,
    "titleBarStyle": "hidden"
  },
  "apc.header": {
    "height": 37
  },
  "apc.sidebar.titlebar": {
    "height": 37
  },
  "apc.activityBar": {
    "size": 40,
    "itemSize": 40,
    "itemMargin": 0
  },
  "apc.stylesheet": {
    ".title-label": "display: none !important",
    ".composite.title": "display: block !important",
    ".monaco-workbench .part.sidebar .title-actions .actions-container": "justify-content: space-evenly !important"
  }

I also have tabs and menubar hidden. This poses a problem, because I cannot invoke the menubar at all (i e, alt-f does not work). So, that is a consideration, you are limited to ctrl-shift-p.

Hope this helps someone! BR! /mawi

4

Install the custom CSS extension.

Now in your custom stylesheet:

.container > .title {
  display: none !important;
}

After, run the command "Enable custom css / js" (and restart).

4
  • 1
    Where should i put the css file and how do i use it? Can you please elaborate? Commented Jun 24, 2018 at 14:44
  • You can put the css file anywhere on your system. There is a setting from the plugin that let you specify a path to that css file. Commented Jun 27, 2018 at 19:29
  • The .title.tabs selector worked for me for getting rid of the tab bar. But this still doesn't save any space: the editor windows moves up and leaves an empty space at the bottom of the window.
    – Max Heiber
    Commented Jul 4, 2019 at 19:58
  • 1
    .container > .title didn't have any effect on my VS Code, even though other styles (like .title.tabs that @Max mentioned) did work.
    – BornToCode
    Commented Sep 8, 2019 at 10:32
3

I faced this issue today, so according to the screenshot you attached it looks like file path is showing with a title bar. So to hide this completely, you can remove this property called "workbench.editor.showTabs" if it's value is false from settings.json file situated in /Users/(user_name)/Library/Application Support/Code/User/settings.json

1
  • yep! workbench.editor.showTabs is the right key to set. This should be the accepted answer
    – Pham
    Commented May 3, 2020 at 13:53
3

I played around with suggested options from VSCode and found this to work

make sure that you have your Window Title Bar Style set to custom open the settings.json file located in /Users/{your-username}/Library/Applcation\ Support/Code/User/settings.json

Append the following to the JSON object

"editor.titleBar.enabled": false

Another option could be to try setting this option in the settings file

  "workbench.colorCustomizations": {
    "titleBar.forground": "#00000000",
    "titleBar.activeForeground": "#00000000",
    "titleBar.background": "#00000000",
    "titleBar.activeBackground": "#00000000",
    ...

This is my machine settings

enter image description here enter image description here

here's a comprehensive list of options you can use to tweak the current the or even your own theme. no additional 3rd party extensions are needed, just tine in the saddle!

happy coding =)

-3

File → Preferences → Settings → Window → Title Bar Style Now choose custom title bar.

1
  • 4
    There are other answers (and a accepted one) that provide the OP's question, and they were posted some time ago. When posting an answer see: How do I write a good answer?, please make sure you add either a new solution, or a substantially better explanation, especially when answering older questions. Commented May 28, 2021 at 16:21

Not the answer you're looking for? Browse other questions tagged or ask your own question.