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

Hide PyCache & Files

Noaclr

|
2 installs
| (0) | Free
Hide __pycache__, Python caches, node_modules, .venv, and any folder or glob from Explorer with one-click toggles.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Hide PyCache & Files

A lightweight, zero-dependency VS Code extension that keeps your Explorer clean by hiding __pycache__, Python cache directories, build metadata, node_modules, .venv, and any custom files or folders with fast toggles.

Hide PyCache & Files Quick Manager

Features

  • Clean Explorer Out of the Box: Automatically hides __pycache__, *.pyc/*.pyo/*.pyd, .pytest_cache, .mypy_cache, .ruff_cache, *.egg-info/.eggs, and .DS_Store/Thumbs.db.
  • Right-Click to Hide (Workspace or Global): Right-click any file, folder, or multi-selection in the Explorer -> Hide in Explorer -> Hide in Workspace or Hide Globally (All Workspaces). Toggleable via hidePycache.showContextMenu.
  • Minimal, Configurable UI (hidePycache.uiLocation):
    • Status Bar (Default): A single unobtrusive N hidden button in the bottom-right corner that opens the quick manager to toggle presets, add/remove custom patterns, or reset/bulk-toggle presets.
    • Explorer Sidebar (Optional): Switch uiLocation to sidebar or both to show a collapsible Hidden Folders checklist panel in the Explorer sidebar.
    • None (Optional): Hide all extra UI controls and use Command Palette or right-click only.
  • Safe files.exclude Management: Tracks only its own managed patterns so your personal files.exclude rules and explicit false overrides are never overwritten.
  • Global-First & Git-Friendly: Defaults to User (Global) scope so Git repos aren't dirtied with .vscode/settings.json unless you explicitly hide a folder per workspace.
  • Optional search.exclude Sync: Mirror managed hidden patterns into search.exclude with a single setting.

Screenshots

Right-Click to Hide in Explorer

Hide any file or folder in the current workspace only, or globally across all workspaces.

Hide in Explorer Context Submenu

Add Any Folder or Glob Pattern

Bare names like .venv or dist automatically expand to **/name; explicit paths and globs are preserved as-is.

Add Folder or Pattern Input

Optional Explorer Sidebar Panel

Set hidePycache.uiLocation to sidebar or both for a collapsible Hidden Folders checklist right inside the Explorer.

Optional Hidden Folders Sidebar Panel

Clean Settings UI

Compact preset list and scope controls.

Hide PyCache Settings UI

Built-in Presets

Preset Patterns Default
pycache **/__pycache__ On
pyc **/*.pyc, **/*.pyo, **/*.pyd On
pytestCache **/.pytest_cache On
mypyCache **/.mypy_cache On
ruffCache **/.ruff_cache On
eggInfo **/*.egg-info, **/.eggs On
osJunk **/.DS_Store, **/Thumbs.db On
coverage **/.coverage, **/htmlcov Off
venv **/.venv, **/venv Off
nodeModules **/node_modules Off

Commands

  • Hide PyCache: Toggle Hidden Files & Folders: Master switch to hide or reveal all managed patterns.
  • Hide PyCache: Manage Hidden Files & Folders: QuickPick menu to toggle presets, add/remove custom patterns, or bulk-toggle presets.
  • Hide PyCache: Hide in Workspace: Hide the selected file(s) or folder(s) in the current workspace only.
  • Hide PyCache: Hide Globally (All Workspaces): Hide matching folder/file name(s) across all workspaces.
  • Hide PyCache: Add Folder or Pattern to Hide: Add a folder name (e.g. dist, .venv) or glob (e.g. **/*.log). Bare names match anywhere (**/name).
  • Hide PyCache: Remove Hidden Folder or Pattern: Permanently remove a custom pattern.
  • Hide PyCache: Enable All Presets / Disable All Presets / Reset Presets to Defaults: Bulk-toggle or restore the 7 default built-in presets.
  • Hide PyCache: Open Settings: Jump straight to this extension's settings.

Settings

Setting Type Default Description
hidePycache.enabled boolean true Master switch to hide or show all managed patterns.
hidePycache.presets string[] 7 defaults Active built-in cache and clutter presets.
hidePycache.additionalPatterns string[] [] Custom folder names, paths, or globs to hide.
hidePycache.disabledPatterns string[] [] Custom patterns temporarily toggled off.
hidePycache.syncSearchExclude boolean false Also apply managed exclusions to search.exclude.
hidePycache.uiLocation "statusBar" \| "sidebar" \| "both" \| "none" "statusBar" Choose where to display the quick-toggle UI.
hidePycache.showContextMenu boolean true Show the Hide in Explorer right-click submenu.
hidePycache.targetScope "global" \| "workspace" "global" Where presets and quick-toggle changes are saved (global keeps Git repos clean; right-click Hide in Workspace still saves per workspace).
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft