Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clear file content cache in Visual Studio Code

My Visual Studio code, on a Windows machine, keeps on showing me the previous content of a file even after this one has been updated, while notepad ++ doesn't behave in the same way.

Is there a way to somehow clean the cache so as to receive fresh content every time?

like image 403
Jonathan Avatar asked Jul 20 '17 13:07

Jonathan


People also ask

Where is VS Code cache?

Windows %APPDATA%\Code\Backups.

Does Visual Studio have a cache?

The Visual Studio component cache is located at %localappdata%\Microsoft\VisualStudio\14.0\ComponentModelCache. This extension makes it easy to delete that folder so you don't have to remember the location of the cache directory.


2 Answers

I think, I understood correct. You can follow below steps.

  1. Press Ctrl + Shift + P
  2. type command Clear Editor History
  3. Press Enter

It will solve your problem.

like image 122
Ankit Jain Avatar answered Oct 08 '22 09:10

Ankit Jain


For me on macOS the following has worked:

  1. Press Cmd + Shift + P
  2. Type command Clear Search History
  3. Press Enter

Then for the search results:

  1. Press Cmd + Shift + P
  2. Type command Clear Search Results
  3. Press Enter
like image 42
Eye Avatar answered Oct 08 '22 08:10

Eye