Is there a visual studio automatic save configuration setting?
Asked Answered
M

10

67

I use the java IDE IntelliJ IDEA and one of the features I like is that there's no saving. Everything's always saved and you just use history navigation. I tend to have both editors open and I'm always forgetting to save in VS.

I'm running vs 2008 with resharper 4.5 but as far as I can tell this isn't achievable or configurable. Any suggestions?

Milena answered 11/6, 2009 at 6:0 Comment(0)
S
62

For VS 2019, the Auto Save File extension seems to work as expected.

It saves individual files on lost focus, can save all files when VS loses focus and can also save all after an inactivity delay.

In VS 2015, I used to use NoMorePanicSave2015.

It does an equivalent of Ctrl+Shift+S when Visual Studio loses focus, which saves all your files, including solution and projects.

Senatorial answered 10/5, 2017 at 12:29 Comment(4)
OK, I edited the answer but c'mon, a link to a useful plugin is clearly what the question was asking for. Btw, was it you who just downvoted my answer? If yes, was it just because of that?Bushtit
Not the downvoter, but thanks for editing; looks better now. Including some reference makes it clear at least what the answer did if ever the link dies.Nihon
As of now, the NoMorePanicSave2015 link you provided is not working. But I guess no one is using VS 2015 now.Hemistich
An extension/plug-in that makes the job, is always welcome.Osana
D
4

Follow these steps to auto save documents in Visual Studio:

  1. Go to Tools -> Options
  2. Go to Environments -> Documents
  3. Enable automatically save files when visual studio is in the background, as depicted in this screenshot

enter image description here

It worked in Visual Studion 2022

Deva answered 17/3, 2023 at 14:19 Comment(1)
why save only when in background? :) I need it to autosave all the time. this seems dumb to me. yet another great usability feature from microsoft vs team.Ricoricochet
F
3

Another plugin: CBAutoSave

This extension can automatically save modified documents, projects, and the solution whenever Visual Studio loses focus.

Saving of modified documents is on by default, while automatically saving projects and the solution is not. All options are configurable through the Visual Studio options dialog.

Fuddle answered 11/10, 2016 at 14:31 Comment(3)
The provided link is broken. I believe it now lives here: vsixgallery.com/extension/b467e5f1-4a69-4ad8-a2a6-0d8bf3932e0eAstrix
Strange enough, this extension was giving me error "Value cannot be null. Parameter name Value" when I tried closing the Visual Studio (I have 2015). So I had to install similar extension: NoMorePanicSave, which does the same, but does not give me an error (yet :)).Astrix
I used this plugin before.. had to move to another PC, cannot download it anymore as both links are dead. I don't think the author is still supporting it as well.Hemistich
K
3

In VS2017/19 Community there is Auto-Recover option under tools->options->autorecover. It will not autosave unless there is a crash, so it may be a good compromise.

In VS2019 its under tools->Options->Environment-AutoRecover.

how-to-auto-save-work-on-visual-studio

Kissable answered 14/5, 2019 at 17:6 Comment(0)
F
2

Visual Studio 2008 will probably be the same:

http://www.howtogeek.com/howto/programming/configure-autosave-autorecovery-of-crashed-projects-in-visual-studio-2005/

However, it's not "no saving" but you can set it down to 1 minute.

Fissionable answered 11/6, 2009 at 6:9 Comment(0)
H
2

Visual Studio 17.2 can now automatically save code documents whenever the application loses focus. This feature can be accessed via Tools > Options > Environment > Document.

Harebrained answered 20/5, 2022 at 9:4 Comment(0)
C
1

There is an autosave, but I must admit that it doesn't seem to always work for me - notably I suspect that it only saves files, but not projects/solutions, or the .user and .suo files. I don't have any links to prove this mind you.

Crellen answered 11/6, 2009 at 9:33 Comment(2)
how do you enable autosave?Highsounding
@shieldgenerator7, well it autosaves on run, I don't know if that's a setting or by default (I don't recall ever setting it up). And it does 'recovery' (like Word) in case of a crash. So it's that kind of autosave.Crellen
L
1

Visual Studio 2022 (Enterprise) has auto save option. But you have to enable it.

Navigate from Tools > Options > Environment > Preview Features and Enable the autosave.

here is a screenshot

Leatherjacket answered 8/4, 2022 at 5:15 Comment(2)
Seems not added to community version.Goaltender
@ms2r yeah. It has not added to community version. Thanks.Leatherjacket
P
0

I prefer this plugin which auto save whenever there are no errors in the file: VSCode AutoSave

Paradiddle answered 7/4, 2023 at 12:48 Comment(0)
D
0

Version: 1.87.2 (user setup)

OS: Windows_NT x64 10.0.22631

Year 2024

File -> Auto Save

Visual Studio toggle AutoSave. File -> AutoSave

Doorknob answered 16/3, 2024 at 16:16 Comment(1)
This works for Mac version 🎉Geiger

© 2022 - 2025 — McMap. All rights reserved.