Click here to Skip to main content
15,614,665 members
Articles / Programming Languages / C++
Posted 9 Mar 2000


11 bookmarked

Auto File Save Add-in for Visual Studio 6.0

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
9 Mar 2000CPOL
Add auto-save feature to Visual Studio 6.0.

An updated software page here: here

Sample Image - AutoSave.gif



This add-in adds an auto-save feature to Visual Studio. When invoked, a dialog box is opened in which the user can set a periodic save interval, and enable/disable automatic saving.

Current version: 1.04.0 (February 28, 2000)
For updates, check my website:



  1. Copy AutoSave.dll to any place you want. A good place would be under the Microsoft Visual Studio folder at Common\MSDev98\AddIns.


  2. Open Visual Studio and select: Tools | Customize...


  3. Go to the Add-ins and Macro files tab and click on the Browse button.


  4. Go to the folder to which you copied AutoSave.dll and select it. Make sure the Files of type listbox is on Add-ins (.dll).


  5. When closing the dialog, a toolbar will appear with the Auto File Save button. Using the customize dialog you can move this button to any other toolbar (if you want to).


  6. Press the button to setup the auto-save period and make sure you enable auto-save by selecting the checkbox.


Possible problems

These is a bug in Visual Studio 6 which causes it to lock up when the add-in starts saving while an IntelliSense Complete Word popup is being displayed. As a workaround, I set the focus to the desktop window and back again before saving. Because the auto complete popup is very sensitive to focus switches, it will be closed. When auto saving, Visual Studio blinks as a result of focus switching. If IntelliSense is enabled and you want to avoid these lockups, check the protection checkbox in the add-in's dialog. If you are not using IntelliSense, uncheck it to avoid blinking. Thanks to Tadeusz Dracz for coming up with this workaround.

There is another known "feature": When working with source-safe IDE integration while the project (dsp and/or dsw files) is not checked out, but you have changed the project settings, the add-in will ask you to check out the project when it is attempting to save it. You can just cancel the request if you don't want to check out, but this will happen periodically with the save. You can also disable saving the workspace and save only the files.

This add-in was built with Visual C++ 6.0 with service pack 3. I haven't tested it with other versions, so you can take your chance. I heard from people that it works fine with DevStudio/Visual C++ 5.

If the add-in doesn't "remember" its previous settings between Visual Studio sessions, check the registry for the following key:



This is where Visual Studio saves its data and where the add-in creates its sub-keys. If it doesn't exist you may have a Visual Studio setup problems. If the key exists, it should have the following sub-key:



This is where the add-in saves its data. If the key doesn't exist, create it manually and see if it works.


Version History

Version 1.04.0
Protect again lockups when saving while an IntelliSense popup is open. Added a checkbox to enable/disable this feature.


Version 1.03.1
Copyrights again. Someone is really threatened by this little freeware open source add-in. So now it has no name at all.


Version 1.03.0
Nothing serious. Someone claimed I violated his copyrights so I changed the name of this add-in from AutoSave to VsAutoSave.


Version 1.02.1
DllRegisterServer() worked only when logged in as administrator. Now it will work in any case (thanks to Petr Smilauer).


Version 1.02.0
Separated saving the files and the workspace to two options. You can now configure the add-in to save only the files and leace the wrokspace or vice-versa.
The URL and e-mail fields in the about dialog are now active.


Version 1.01.0
Added about dialog with version and contact information.


Version 1.00.4
After installing, the auto saving is enabled by default.


Version 1.00.3
Fixed a big bug that prevented Visual Studio from terminating successfully.


Version 1.00.2
First release outside my small beta tester comunity.




This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Written By
Software Developer (Senior)
Israel Israel
It's all in my website

Comments and Discussions

GeneralCould not compile. Pin
WREY11-Feb-06 6:37
WREY11-Feb-06 6:37 
GeneralRe: Could not compile. Pin
grebulon11-Feb-06 7:23
grebulon11-Feb-06 7:23 
GeneralRe: Could not compile. Pin
WoshiniDaye13-Aug-07 15:21
WoshiniDaye13-Aug-07 15:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.