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.


5 Answers 5


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

Windows - %APPDATA%\Code\User\

For me this translated to:


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

  • 12
    Thanks! On OS X there is a similar folder in ~/Library/Application Support/Code/Backup where my text files were hiding out.
    – Alper
    Aug 31, 2017 at 10:36
  • 1
    What about Linux?
    – Colliot
    Apr 22, 2018 at 9:34
  • I don't have a Linux installation to test on unfortunately. However I would guess it is located somewhere in the /home folder.
    – Burgi
    Apr 22, 2018 at 14:19
  • 7
    On my Chromebook Linux, I found it in ~/.config/Code/Backups/...
    – apex
    Oct 2, 2018 at 12:22
  • 1
    For those of readers using Azure Data Studio, the path is very nearly the same. Substitute azuredatastudio for code in the searched path.
    – Josh Gust
    Aug 11, 2021 at 16:03

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

  • 3
    ~/.config/Code - OSS/Backups and ~/.config/Code - Insiders/Backups for the open source version and the Insiders version, respectively.
    – Marc.2377
    Jun 29, 2019 at 1:49
  • the opensource version folder might have changed: I found it at ~/.config/VSCodium/Backups
    – maxlath
    Oct 10, 2020 at 10:13

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
  • awesome, ~/Library/Application\ Support/Code/Backups is the path
    – kisna
    Mar 12, 2021 at 1:09
  • As an example on OSX for Azure Studio (which is based on VS): ~/Library/Application Support/azuredatastudio/Backups/1623786046143/file/6be3cd5e7e4dd5b8f863e42c7ceef3e Jun 18, 2021 at 14:30

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


Windows, Visual Studio 2019:

  • 1
    The OP was specifically asking about VS Code rather than the full Visual Studio.
    – Burgi
    May 18, 2021 at 11:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.