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.

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.

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

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

Clean Settings UI
Compact preset list and scope controls.

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). |
| |