Windows – Visual Studio Code unsaved files location

visual-studio-codewindows

Does anyone know where VS code saves unsaved files on a Windows machine?

I have found many discussions about this features, but they don't mention where the files are actually saved.

Best Answer

The Microsoft help file indicates that the settings are stored in the folder:

Windows - %APPDATA%\Code\User\

For me this translated to:

C:\Users\USERNAME\AppData\Roaming\Code\

In this folder I located a Backups folder, this folder contained the raw data for my document. This appears to be grouped by date stored as a UNIX timestamp.

VS Code cached document location

Related Question