Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode files cache location (for recovery) #8

Open
sanjarcode opened this issue Jul 21, 2023 · 0 comments
Open

vscode files cache location (for recovery) #8

sanjarcode opened this issue Jul 21, 2023 · 0 comments
Assignees

Comments

@sanjarcode
Copy link
Member

sanjarcode commented Jul 21, 2023

Context

I have used this many times to get unsaved stuff back. Examples:

  • Once it was because GitHub was down (push didn't actually work), and I had deleted the repo.
  • I forgot to save stuff but needed it.

Locations

  • macos - ~/Library/Application Support/Code/Backups/, see chatGPT, actually /Users/muhammad/Library/Application Support/Code/User/History/-62436b/mpQ8.md
  • linux - ~/.config/Code/, see StackOverflow

What to do

  1. grep something you can remember uniquely about the file, or browse naively.
  2. Copy the folder somewhere safe, as the cache may invalidated anytime.
  3. Open the folder using an editor and global search, vscode is fine too :)
@sanjarcode sanjarcode self-assigned this Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant