Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Hide Files & FoldersNew to Visual Studio Code? Get it now.
Hide Files & Folders

Hide Files & Folders

VastBlast

|
3 installs
| (1) | Free
Hide files and folders from the Explorer by adding workspace files.exclude entries, with a Hidden Files & Folders view for opening and unhiding them.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Hide Files & Folders

Hide Files & Folders adds a focused Explorer workflow for VS Code's built-in files.exclude setting.

Install

Install from the Visual Studio Code Marketplace, or run:

code --install-extension VastBlast.vscode-hide-files

Features

  • Right-click a file or folder in the Explorer and choose Hide File or Hide Folder.
  • The extension adds a workspace-scoped files.exclude entry for the selected resource.
  • Hidden resources appear in the Explorer's Hidden Files & Folders view.
  • Files in the Hidden Files & Folders view open normally. Hidden folders expand so their contents can still be browsed.
  • Right-click a root hidden item in the Hidden Files & Folders view and choose Unhide to remove its files.exclude entry.

Workspace Behavior

In a single-folder workspace, hidden entries are written to workspace settings. In a multi-root workspace, entries are written to the selected folder's workspace-folder settings. Existing files.exclude entries are preserved, and inherited user/default excludes are not copied into the workspace.

Patterns already present in files.exclude are shown when they are enabled in the same workspace scope. Literal paths are rendered as files or folders when the resource exists; glob patterns that cannot map to one concrete resource are shown as removable patterns.

Platform Support

Hide Files & Folders works across VS Code desktop and remote workspaces, including Windows, macOS, Linux, WSL, Dev Containers, SSH, and Codespaces. It uses VS Code workspace URIs and the official configuration API instead of OS-specific path handling.

Development

npm run compile
npm run lint
npm test
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft