Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Hide DotfoldersNew to Visual Studio Code? Get it now.
Hide Dotfolders

Hide Dotfolders

Ex Nihilo LLC

|
1 install
| (0) | Free
Hide dotfolders in the explorer
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Hide Dotfolders

One-click toggle to hide dotfolders (.vscode, .github, .idea, …) from the Explorer.

Usage

  • Click the eye icon in the Explorer title bar to hide; it becomes eye-closed — click it to show.
  • Or run Hide Dotfolders: Toggle from the Command Palette.

How it works

Hiding scans the top level of each workspace folder for dotfolders and adds a **/.name: true entry to files.exclude for each one. Showing removes only the entries the extension added.

  • Any key already in effective files.exclude (VS Code defaults, user, workspace, or folder settings — even false) is left alone. Matching is by exact key, so equivalent patterns like .vscode/** aren't recognized.
  • .git is already hidden by VS Code's default files.exclude, so the toggle doesn't touch it.
  • An added entry you change to false is treated as yours and kept on show.
  • While hidden, dotfolders are rescanned on startup and when folders are added to the workspace. Dotfolders created on disk in between aren't picked up until then.
  • Dotfiles (.env, .gitignore, …) are not scanned. But **/.name patterns match anything with that name at any depth, including nested files.

Settings

Setting Default Description
hideDotfolders.scope global Where entries are written: global (user settings) or workspace (this workspace's settings). Changing it while hidden applies to the next hide.
  • global: hidden state is shared across all projects. Opening another project while hidden adds its dotfolders to user settings too.
  • workspace: requires an open folder. Writes to .vscode/settings.json (or the .code-workspace file), creating it if needed.

With global scope and Settings Sync on (Settings + Extensions), the entries and the extension's record of them both sync, so any machine can show them again.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft