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.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityDoes 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.
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.
/home
folder.
– Burgi
Apr 22 '18 at 14:19
untitled
document was created through trial and error; using the Backups folder I found it by date in a matter of seconds and my unsaved work was all there!
– Aaron
Nov 22 '19 at 0:18
For Linux users they are found at ~/.config/Code/Backups
.
For Visual Studio Code on macOS, these files are found at:
~/Library/Application Support/Code/Backups
Insiders on macOS:
~/Library/Application Support/Code - Insiders/Backups
OSS on macOS:
~/Library/Application Support/Code - OSS/Backups
For me the unsaved file was found in a backup folder like this:
C:\Users\Administrator\AppData\Roaming\Code\Backups\8d378a09dd88537dedfce7abca2rw8j9\untitled\hsvv217a77da570a5c596af6934dede7