VS Code unsaved files location

At that Backups folder location, you can also look at the workspaces.json file; it will list the nice directory path for each project directory which corresponds to the “hashed” directory names. If you go into each one of those and run code ., it’ll bring up your unsaved files directly.

macOS

For Visual Studio Code on macOS, these files are found at:

"$HOME/Library/Application Support/Code/Backups"

Insiders on macOS:

"$HOME/Library/Application Support/Code - Insiders/Backups"

OSS on macOS:

"$HOME/Library/Application Support/Code - OSS/Backups"

Linux

For Visual Studio Code on Linux, these files are found at:

"$HOME/.config/Code/Backups"

Insiders on Linux:

"$HOME/.config/Code - Insiders/Backups"

OSS on Linux:

"$HOME/.config/Code - OSS/Backups"

Windows

For Visual Studio Code on Windows, these files are found at:

"%appdata%/Code/Backups"

Insiders on Windows:

"%appdata%/Code - Insiders/Backups"

OSS on Windows:

"%appdata%/Code - OSS/Backups"