The Workspace Storage Cleanup extension for Visual Studio Code is designed to help users manage and clean up workspace storage files effortlessly. These files can accumulate over time and occupy significant disk space, potentially slowing down the IDE. With this extension, developers can streamline their workspace by removing unnecessary storage files, improving performance and maintaining a clutter-free development environment.
- Extension URL: VS Marketplace
- Source Code: GitHub Repository
Visual Studio Code keeps a dedicated storage folder for each workspace (folder, .code-workspace
file, or remote repo), located under Code/User/workspaceStorage/<uniqueID>
. When these workspaces are renamed, moved, or deleted, the storage folders remain and become unused. This extension detects and removes those orphaned folders, helping you keep your workspace storage clean and efficient.
- View and manage workspace storage files via a dedicated panel.
- The panel displays the workspace name, storage size, type, path, and actions (e.g., delete).
- Use specific commands to clean up workspaces based on certain conditions such as missing folders, broken links, or empty files.
- Designed to be user-friendly, with clear actions and prompts.
- Open Visual Studio Code.
- Go to the Extensions view by clicking the Extensions icon in the Activity Bar (or press
Ctrl+Shift+X
). - Search for Workspace Storage Cleanup.
- Click Install.
- Download the latest
.vsix
file from the GitHub Releases. - Open VS Code.
- Press
Ctrl+Shift+P
to open the Command Palette and typeExtensions: Install from VSIX
. - Select the downloaded
.vsix
file to install.
- Open the Command Palette (
Ctrl+Shift+P
). - Type
Workspace Storage Cleanup: Show Workspaces
. - A panel will open displaying workspace details such as:
- Name: Unique identifier for the workspace.
- Storage Size: Disk space occupied by the workspace.
- Type: Whether the storage is a folder, remote workspace, etc.
- Path: File path to the workspace storage.
- Actions: Options to delete or inspect specific storage entries.
The extension provides several commands to manage storage:
Command | Description |
---|---|
Workspace Storage Cleanup: Show Workspaces | Opens the interactive workspace panel for management. |
Workspace Storage Cleanup: Delete Workspaces with Missing Folders | Removes workspaces whose folders are no longer available. |
Workspace Storage Cleanup: Delete Workspaces with Broken Links | Deletes workspaces with invalid or broken links. |
Workspace Storage Cleanup: Delete Empty Workspaces | Cleans up empty workspace storage files. |
Workspace Storage Cleanup: Delete Remote Workspaces | Removes remote workspace storage. |
We welcome contributions to improve the extension! To get started:
-
Fork the Repository:
- Go to the GitHub Repository.
- Click the Fork button to create your own copy of the repository.
-
Clone Your Fork:
git clone https://github.com/your-username/vscode-workspace-storage-cleanup.git
Replace
your-username
with your GitHub username. -
Create a Feature Branch:
git checkout -b feature/your-feature-name
Replace
your-feature-name
with a descriptive name for your feature or fix. -
Make Changes:
- Implement your feature or fix.
- Test your changes thoroughly.
-
Commit Your Changes:
git add . git commit -m "Add your descriptive commit message here"
-
Push Your Branch:
git push origin feature/your-feature-name
-
Create a Pull Request:
- Go to the original repository on GitHub.
- Click the Pull Requests tab.
- Click New Pull Request and select your feature branch.
- Add a description of your changes and submit the pull request.
- Use the GitHub Issues page to report bugs or suggest new features.
This project is licensed under the MIT License.
If you encounter any issues or have questions about the extension, feel free to:
- Open a discussion on GitHub Discussions.
- Reach out via the Marketplace Page.
Icon made by Flat Icons from flaticon.com