GithubHelp home page GithubHelp logo

jabbalaci / vs-code-workspacestorage-cleaner Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 1.0 5 KB

Delete VS Code workspaceStorage cache folders that are older than 60 days

License: MIT License

Makefile 2.23% Python 97.77%
vscode python3 utility

vs-code-workspacestorage-cleaner's Introduction

VS Code workspaceStorage Cleaner

Problem

It is a well-known problem with VS Code that the workspaceStorage cache folder can grow really big (easily 10+ GB).

How to keep its size acceptable?

Solution

This folder is located at ~/.config/Code/User/workspaceStorage (under Linux). It's a good idea to move it somewhere else (e.g. on an external hard drive) and put a symbolic link on it. This way it's out of your HOME directory.

But, the problem is still there: this folder can grow really big if you use VS Code extensively. In this case, you can use this script. It checks the date of the last modification of each cache folder and if they are too old, then they are deleted.

(These are cache folders, so even if you delete one by accident, VS Code can re-create it.)

Usage

  • Put this script in the folder ~/.config/Code/User/workspaceStorage (under Linux).
  • Modify LIMIT as you wish.
  • Leave DRY_RUN = True and execute it.
  • If the output is OK and you want to get rid of the old folders, set DRY_RUN = False and re-execute the script. This time the old folders will be deleted.

vs-code-workspacestorage-cleaner's People

Contributors

jabbalaci avatar

Stargazers

Pranav Nyati avatar Taqi Ul Abrar avatar  avatar Nikos Alexandris avatar Ethan Trevor avatar Iliya Gorshkov avatar  avatar 4674 avatar  avatar Alexander Trost avatar Meriç SARIIŞIK avatar  avatar Mark Kogan avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

pranavnyati

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.