Everywhere I look on google, I find out how to clear the VS-Code cache data on windows. To be fair, even though it is an open source project, its being built from Microsoft's dollar, and by MS developers.
Anyhow, I use Ubuntu (obviously), always have, and always will #Linux4Life. I would like to clear all of .VSCode's cached data, however, like much of the other Microsoft built software out there, Microsoft puts things in, what I consider to be, weird places.
I found one thread/question, on StackOverflow.com (this text is the link). The author suggested the following:
rm -rf ~/Library/Application\ Support/Code/Cache/*
rm -rf ~/Library/Application\ Support/Code/CachedData/*I haven't tried typing it into the command-line, but I'm certain by looking at it that it is not going to do anything on my machine, as those (dir/file)-paths don't reference anything on my machine, or on any Ubuntu Distro that I know of. The question was in reference to Mac/Linux, so I am guessing the above is a Unix/Mac thing. despite one example displaying Forward slashes, and the other displaying backslashes. I would love if somebody knew something.
22 Answers
It is located in the directory of the user that installed it: /home/user/.config/Code.
Inside there are three directories: Cache, CachedData, and CachedExtensionVSIXs.
from VSCode docs:
Hot Exit
[...] all backups are stored in the following folders for standard install locations:
- Windows
%APPDATA%\Code\Backups- macOS
$HOME/Library/Application Support/Code/Backups- Linux
$HOME/.config/Code/Backups