I accidentally deleted my visual studio. can I get my code back? I can't access my codes after I reinstalled it.

Farid Ahmed 1 Reputation point
2022-11-11T14:05:18.197+00:00

deleted my visual studio can I get my code back

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,514 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 26,306 Reputation points Microsoft Vendor
    2022-11-14T02:03:12.04+00:00

    Hello @Farid Ahmed ,

    Welcome to Microsoft Q&A forum.

    Visual Studio has a "AutoRecover" feature. Please navigate to %LocalAppData%\Microsoft\VisualStudio\BackupFiles\[projectname], and check if your projects were autosaved there.

    Besides, if you didn’t delete your projects but only VS, the projects/codes should still work. Do you get any error message?

    Best Regards,
    Tianyu

    • If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.