The Computer Oracle

Visual Studio Code unsaved files location

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Riding Sky Waves v001

--

Chapters
00:00 Visual Studio Code Unsaved Files Location
00:15 Accepted Answer Score 71
00:47 Answer 2 Score 34
00:57 Answer 3 Score 23
01:17 Answer 4 Score 1
01:28 Thank you

--

Full question
https://superuser.com/questions/1225368/...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows #visualstudiocode

#avk47



ACCEPTED ANSWER

Score 71


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




ANSWER 2

Score 34


For Linux users they are found at ~/.config/Code/Backups.




ANSWER 3

Score 23


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



ANSWER 4

Score 1


If you use scoop on Windows to manage your (portable) vscode installation, the backup path you're looking for is

%USERPROFILE%\scoop\persist\vscode-portable\data\user-data\backups