Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Dispel — Hide Files & Folders from ExplorerNew to Visual Studio Code? Get it now.
Dispel — Hide Files & Folders from Explorer

Dispel — Hide Files & Folders from Explorer

nrentas

|
7 installs
| (1) | Free
Right-click to hide files and folders from the Explorer sidebar and optionally exclude them from Git. Restore anytime from the status bar.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Dispel icon

Dispel

Right-click to hide files and folders from the Explorer sidebar.
Optionally exclude them from Git. Restore anytime.


Features

  • Hide from Explorer — Right-click any file or folder to hide it from the sidebar
  • Hide & Exclude from Git — Also adds the pattern to .git/info/exclude so Git ignores it locally
  • Multi-select — Select multiple files and hide them all at once
  • Restore — Click the status bar counter or run the command to restore hidden files
  • Persistent — Hidden files stay hidden across VS Code restarts
  • Mask .env Values — Automatically masks secret values in .env files, showing only the first 3 characters with the rest replaced by dots. Toggle masking with a button in the editor title bar or via the command palette

Usage

  1. Right-click a file or folder in the Explorer
  2. Choose Dispel: Hide from Explorer or Dispel: Hide & Exclude from Git
  3. The file disappears from the sidebar
  4. A status bar item shows how many files are hidden — click it to restore

Commands

Command Description
Dispel: Hide from Explorer Hide selected files from the Explorer sidebar
Dispel: Hide & Exclude from Git Hide from Explorer and add to local git exclude
Dispel: Restore Hidden Files Pick which hidden files to restore
Dispel: Restore All Hidden Files Restore everything at once
Dispel: Toggle .env Value Masking Show or hide masked values in .env files

How It Works

Dispel uses VS Code's files.exclude and search.exclude settings to hide files from the Explorer and search results. When you choose to exclude from Git, it writes patterns to .git/info/exclude (local to your machine, not committed).

All hidden entries are stored in workspace state, so they persist across sessions.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft