How to force Visual Studio 2008 to use an instance of Open when double-clicking on a file?

Some non-project files that I use Visual Studio for (.build, .xml, free-roaming html and css files) are already associated with the visual studio and open in it when I double-click on them.

How can I make them open in an existing instance of visual studio? Right now If you double-click the same file, it will open two instances of the visual studio, I would just ignore the second open attempt if there is already an VS open instance.

+5
source share
4 answers

Ok Richard helped me a bit in the right direction, but I think I found exactly what I want.

  • , "" - " " → " ".
  • , .
  • , .
  • ""
  • "...", .
  • :

: VS 2008
"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" /dde
dde
DDE: Open ( "% 1" )
: VisualStudio.9.0
DDE : ( )
:

  1. Ok
  2. .
  3. "", ""

, . VS, .

, , , VS 2005 2008 .

Win 7/VS 2012
, . " " . . , VS2012 .

+4

Windows 7 vs2010;

" " > " " , regedit.

HKEY_CLASSES_ROOT\VisualStudio.XXX.10.0\shell\Open\Command /edit , XXX - .

.reg .cpp;

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\VisualStudio.cpp.10.0\shell\Open\Command]
@="\"C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE\\devenv.exe\" /dde /edit"
+4

VS?

2003 VSEdit.

2005 , , . Google -, .

, .

+1

Visual Studio DDE (, Secure SSHCommunications Secure Transfer Transfer Client, Winzip explorer ). , .

  • IDE , IDE , . " . , .
  • IDE , . " , . , , ". 1)

, !

  • VSEdit ( / .Net 2003), ( ) msdev, : post Sara Ford, , VSEdit VS2005 - .
  • DDE (Tools- > Folder Options- > File Types), Jeff, VSEdit.exe devenv.exe. :

: "C:\Program Files\PowerToys Visual Studio.NET 2003\VSEdit\VSEdit.exe" /c "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe/Edit "" "% 1 "" "" % 1" dde: () DDE: ( ) : VSEdit DDE Application Not : ( ) :

N.B. / - () , msdev, /Edit, . , .

+1

All Articles