Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to automatically save project file after a new file include in Visual Studio?

Working with Visual Studio 2010 here, but the behavior has been the same since the dawn of time - is there a way to force the IDE to automatically save the project file after doing an "Include in project" on new files? Folks new to VS don't quickly get in the habit of Ctrl+Shift+S after every one of these operations, leading to multiple repo commits when we discover assets missing from our bundled webapps.

like image 735
Thomas H Avatar asked Apr 21 '11 17:04

Thomas H


People also ask

How do you save progress in Visual Studio code?

By default, VS Code requires an explicit action to save your changes to disk, Ctrl+S. However, it's easy to turn on Auto Save , which will save your changes after a configured delay or when focus leaves the editor.

How do I turn off autosave in Visual Studio?

To turn on or turn off the Auto Save feature in Visual Studio Code, go to File and click on Auto Save from the drop-down menu: The steps are completely the same in Windows and macOS. If you want to config the Auto Save behavior deeper, go to: Mac: Code > Preferences > Settings.


1 Answers

I used to run into this all the time and it was very annoying. The solution that I use is to re-map CTRL+S to File.SaveAll since I'm already using source control. However, this doesn't help new VS installs that haven't had this set up.

like image 200
TheCloudlessSky Avatar answered Sep 17 '22 21:09

TheCloudlessSky