A lightweight extension that helps you manage disk space by cleaning up node_modules and venv folders.
How It Works
This extension provides a command to clean up heavy dependency folders from your workspace or does it automatically as you close your vscode window.
Finds Targets: It searches for node_modules and venv folders in your open workspace as you close the vscode window.
Creates Restore Script: Before deleting a folder, it creates a auto_cleaner_restore.bat script in the same directory. This script contains the command to restore the dependencies (e.g., npm install).
Deletes Folders: It then deletes the target folder to free up space.
Restores: Reinstalls packages or recreates virtual environment as per the batch file as you reopen the project file.
OR
Manual Cleanup: Use the command palette to run the cleanup process at any time.
Installation
Open Visual Studio Code.
Go to the Extensions view (Ctrl+Shift+X).
Search for Auto Cleaner.
Find the extension published by mayank-1007 and click Install.
Commands
You can run the cleanup process manually from the Command Palette (Ctrl+Shift+P):
Auto Cleaner: Delete and Log Now: Finds and deletes all node_modules and venv folders in the current workspace.
Happy coding! Your disk is cleaner, and your projects are tidier.