When you already have an instance of Visual Studio running, it is annoying to go to open a new .cs file, and have a new instance of Visual Studio fire up. Apart for defeating the purpose, since it makes debugging harder, it also takes a very long time to get started, only to then shut it down once it comes up.
There is a short cut to open any new file in the same instance of Visual Studio. When called from the command prompt, simply add the /Edit command switch.
Therefore,
C:\> devenv NewBehaviourScript.cs
will open it into a new instance of Visual Studio, while
C:\> devenv /Edit NewBehaviourScript.cs
will open it in the running instance.
More command switches can be found here.
No comments:
Post a Comment