简体   繁体   中英

how to recover files window form files in visual studio

I'd created a form in Visual Studio 2010. Somehow my computer was restarted. After restart I cannot open the form. It shows me the icon as C# file but when I double-click the file, it opens in Notepad and displays blank in Notepad. It also gives me the error: No suitable editor to open the file.

Please help me recover the file. I have spent lots of time to make this form work.

Under Tools – Options – Environment, you'll find the AutoRecover page

自动恢复页面

Note that you can opt-out of the AutoRecover feature by unchecking Save AutoRecover information. I'm very curious if anyone has opted out here, and why.

The rest of the page is self-explanatory, but did you know where VS saves these auto-recovered files? They are saved in \\…\\My Documents\\Visual Studio \\Backup Files\\ .

自动恢复目录

In case you (hopefully) have never seen the AutoRecover dialog, here's what it looks like. It'll pop up the next time you launch VS. You have the options to either use the backup file or ignore it.

自动恢复启动

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM