开发者

Configure 'Save on losing focus' in visual studio 2010

开发者 https://www.devze.com 2023-01-19 19:36 出处:网络
Is it possible either in the standard build or via a extension to make visual st开发者_运维百科udio 2010 save all unsaved work when I switch focus to another application.

Is it possible either in the standard build or via a extension to make visual st开发者_运维百科udio 2010 save all unsaved work when I switch focus to another application.

It's a feature that IntelliJ and TextMate do rather well (spot the Java developer learning C#) and it means I've gotten out of the habit of saving changes before I switch to the browser and hit refresh.

Note I'm not expecting real code to just work like this, I'm kinda hoping that changes to views and scripts can be saved on alt+tab


Someone made an add-in which does the job, go to http://cbates.net/document-autosave-for-visual-studio/

UPDATE:
Beware in VS2015 it seems that sln/csproj files are not being saved when focus is lost. This can cause some pain when you pull latest changes outside VS and forget to save project manually.


You can configure an auto-save option that allows you to set a number of minutes and VS saves everytime that number of minutes is hit, its not exactly what you require but is an option you can consider.

To configure this option, go to Tools \ Options and then click on AutoRecover in the Environment section:

Configure 'Save on losing focus' in visual studio 2010

0

精彩评论

暂无评论...
验证码 换一张
取 消