Summary

Document Session Manager is a Visual Studio 2008 addin for saving and restoring the list of opened documents (xml files, source files, winforms, etc.) inside the IDE.

Here are some screenshots (more on the documentation page)
savesessionas2.png
secondsession.png

Details

Document Session Manager's features (DSM from now on) are inspired on a firefox addon called Session Manager

DSM allows to save the list of opened files under what is called a "session". Later, this session can be loaded causing all the documents which belongs to that session to be re-opened. The main purpose of that is to help the programmer to focus on just a set of documents and get rid of others that could get opened during some debugging or while navigating with the Go To Definition (F12) command of Visual Studio (in my experience, a lot of files that we just needed for a quick peek can populate the VS IDE in no time ;)

One extra feature of DSM is it's ability to keep the list of documents that where open when the debugger is started, and, once the debugging ends, restore those documents closing others that could be opened during the debug session. (NOTE: If you don't find this feature useful, it can be disabled on the addin options page)

Installation

You just have to copy the DocumentSessionManager.dll and the DocumentSessionManager.AddIn files to any of the locations described here
If you don't want to go through the whole article, just place the files under this path <DRIVE>:\Documents and Settings\<YOUR_USER>\My Documents\Visual Studio 2008\Addins\

To uninstall the addin, remove the following files:
DocumentSessionManager.dll
DocumentSessionManager.AddIn
DsmSessions.xml (this file may not exist if the addin was never loaded into the VS IDE)
DsmSettings.xml (this file may not exist if the addin was never loaded into the VS IDE)

And run the following on a command prompt:
"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\"devenv.exe /resetaddin DocumentSessionManager.Connect

(NOTE: you may need to replace C:\Program Files\Microsoft Visual Studio 9.0\ with the folder where your copy of VS2008 is installed)

Usage

Please see the documentation page

Configuration

To configure the behavior of the addin, go to the Tools\Options menu in Visual Studio and select the Document Session Manager page
configuration.png

You can also configure keyboard shortcuts for each addin command. Go to the Tools\Options menu in Visual Studio, select the Keyboard page and in the "Show commands containing" textbox, type "DocumentSessionManager." to see the list of available commands
shortcuts.png

Some limitations

Due to some limitations on the visual studio extensibility API, I couldn't manage to save the tab position of opened documents, neither to save the state of documents when they are on Vertical or Horizontal Tab Groups, like this...
tabgroups.png

Credits

DSM addin is developed by Jorge Rowies

Google profile: http://www.google.com/profiles/jorge.rowies
Blog: http://jorgerowies.blogspot.com/
Ohloh: http://www.ohloh.net/accounts/jorgerowies

Any feedback about this plugin will be really appreciated

Last edited Apr 29, 2010 at 12:20 PM by jorgerowies, version 39