Pycache Cleaner is a Visual Studio Code extension designed to help you effortlessly delete Python cache files and directories (__pycache__). Python cache files can clutter your project and occupy unnecessary space. This extension allows you to clean up these files with a single command.
Features
Find and delete __pycache__ folders: Searches for all __pycache__ folders in your workspace and deletes them.
Exclude certain directories: Automatically skips hidden directories and virtual environments (venv).
User-friendly notifications: Displays messages in the VS Code interface about the cleanup process.
Installation
Open Visual Studio Code.
Go to the Extensions view by clicking the Extensions icon in the Activity Bar on the side of the window or by pressing Ctrl+Shift+X.
Search for "Pycache Cleaner".
Click "Install" to install the extension.
Usage
Open the Command Palette by pressing Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux).
Type Delete pycache and select the command from the list.
The extension will search for __pycache__ folders in your workspace, print their paths, and delete them.
Notifications will appear to inform you about the found and deleted __pycache__ folders.
How It Works
When you run the Delete pycache command, the extension will:
Search for all __pycache__ folders in your workspace, excluding hidden directories.
Print the paths of the found __pycache__ folders in the VS Code interface.
Delete the found __pycache__ folders and notify you about the deletions.
ReachMe:
🧹 Pycache Cleaner - Keeping your Python projects clean and clutter-free!