views:

60

answers:

2

How do I start just one instance of Visual Studio 2008?

For example if I assign a favorite shortcut for Outlook, and press this key, everytime it takes me back to the One and only instance of Outlook.

How do I get this to work with VS 2008, I don't want it to start another instance whenever I press the shortcut key, but go back to the OneAndOnly instance?

/Christer

A: 

OneOnly

HuBeZa
+1  A: 

You can take advantage of the fact that the command line switch "/Edit" for devenv.exe will open in a running instance (and start a new one if there isn't one). Specify a harmless text file, some file you would open anyway or some other text file (e.g. a ToDo list).

Thus, in the shortcut's "Target" field, e.g.:

"D:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" /edit S:\temp2\someHarmLessTextFile.txt
Peter Mortensen
Gold Man!Exactly what I wanted, I using MS keyboard and I added the edit switch for that key- goes back to opened instance, but I can still open new instances via the "default route" to the app - Great!/RegardsChrister
Chris_45