visual-studio-code

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?


Solution

  • 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.