Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open file from command line in an already opened Visual Studio?

The command

C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe C:\PATH\TO\file.txt

opens a new instance of MS VS. I want to open files in an already opened VS, where I have my project defined and opened.

Is it possible?

like image 951
noisy Avatar asked Jan 17 '12 13:01

noisy


1 Answers

Try using the /edit switch

Look here: http://msdn.microsoft.com/en-us/library/xee0c8y7(v=vs.100).aspx

Opens the specified files in a running instance of this application. If there are no running instances, it will start a new instance with a simplified window layout.

like image 175
granaker Avatar answered Oct 04 '22 02:10

granaker