You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

VSCode如何隐藏或移除显示文件/目录/应用文件的顶部栏(面板)?

How to Hide/Remove the Explorer Header Bar in VS Code

Hey there, if you're looking to get rid of that top panel (the Explorer view's header bar with buttons like New File, New Folder, Refresh) in VS Code, here are a few easy ways to do it:

  • Use the Command Palette (quick toggle)
    Open the Command Palette with Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac), type in Toggle Explorer Header, and hit Enter. This will instantly switch between showing and hiding the header bar.

  • Right-click shortcut from the Explorer
    First, make sure the Explorer sidebar is open (click the folder icon in the left activity bar). Then right-click anywhere on the empty space of that top header panel—you'll see a Hide Header option. Click it, and the bar will disappear. To bring it back later, just right-click the Explorer sidebar's top area again and select Show Header.

  • Permanent hide via Settings
    If you never want this header bar to show up again:

    1. Open the Settings interface with Ctrl+, (Windows/Linux) or Cmd+, (Mac).
    2. In the search bar at the top, type explorer.headerVisibility.
    3. From the dropdown options, select hidden.
      To restore it later, just change the setting back to visible.

Note that hiding this header doesn't remove any functionality—you can still create files/folders, refresh the view, etc., using right-click menus in the Explorer or keyboard shortcuts.

内容的提问来源于stack exchange,提问作者eeeyyeeezz

火山引擎 最新活动