Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you clear your Visual Studio Code cache on a Mac/Linux Machine?

How do I flush the cache for my Visual Studio Code on my Mac El Capitan OS?

like image 878
Ariella Avatar asked Aug 30 '16 18:08

Ariella


People also ask

Where is VS Code cache Linux?

Specifically, it is stored under %LocalAppData%/Microsoft/vscode-cpptools on Windows, and for Linux and macOS it is under ~/. vscode-cpptools . By using the user directory as the default path, it will create one cache location per user for the extension.

How do I clear cache in terminal mac?

Here is how to clear cache on Mac with Terminal: Type “terminal” on Spotlight. Type these commands and enter: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder; say cache flushed.

What happens when you delete cache on Mac?

Cached files usually speed up your web browsing experience, saving you bandwidth at the same time. You may occasionally want to clear your Mac's browser caches because they can end up using a lot of disk space unnecessarily. Deleting your browser's cache will also hide your online activity, protecting your privacy.


2 Answers

rm -rf ~/Library/Application\ Support/Code/Cache/* rm -rf ~/Library/Application\ Support/Code/CachedData/* 
like image 56
ttlg Avatar answered Oct 11 '22 10:10

ttlg


I believe this is what you are asking... how to clear your file history cache (pulled from this git issue). It is very simple!

To clear your entire history -> enter image description here

To clear history of specific files -> ">Remove From History"

If you are looking to clear your user or workspace settings, they are just files that can be cleared inside VSCode or manually deleted from your file system. This is documented in the VSCode docs.

like image 32
Prancer Avatar answered Oct 11 '22 09:10

Prancer