Greatchap
Greatchap

Reputation: 382

Disable auto save of code in Visual Studio 2012

I am using Microsoft Visual Studio 2012 Pro for windows software development. Earlier I used to use VS 2008.

One option that I couldn't find (which was there in older version) is :

Before building -
-Do not save any changes
-Save all changes
-Prompt to save changes

The above was available in Tools->Options->Build & Run in older versions.

At times when I make temp changes in my code which I don't want to save it then that feature comes in handy.

Is there any way I can stop VS 2012 from saving my code before I build/run it.

Thank you,

Cheers, GR

Upvotes: 9

Views: 9093

Answers (2)

Chris Raisin
Chris Raisin

Reputation: 442

The IDE prompts for saving on unsaved code or resources when you close the project.

With GIT or other source control you can run on command to save versions. I actually like the program "Second Copy" which you can set up to save versions of your code (I save the last 15 versions of any changed file in the project). This is set up to run whenever a file changes, but you would not want it to save a new version every time you make a change while testing/debugging, preferring to only back up to the new version every time the file is SAVED either manually using the mouse/Shortcut keys or upon close of the IDE. That way you have true backup of code you are satisfied with.

I think having autosave is dangerous because it overworks the source control if you have one in place (either GIT or Second Copy or whatever) and if you don't you lose the ability to go back to a prior version should you stuff up the code or decide not to proceed with changes. Having the option, though, to have autosave (either at intervals or on "Run"/"Build") should still be there to please all users (but the default should be "off") Of course on "Publish" all files are saved anyway (as they should be).

Give "Second Copy" consideration...http://www.secondcopy.com/ (I have no association with second copy, I have just used it for years and love it)

Upvotes: 0

Walt Ritscher
Walt Ritscher

Reputation: 7037

That feature was dropped in Visual Studio 2010. As far as I know it hasn't resurfaced in Visual Studio 2012.

Save All Files Before Build Gone in Visual Studio 2012?

Upvotes: 2

Related Questions