Two Time-saving VS Command Line Parameters

E02D0021 I realize that many of my readers load one project at the beginning of the day and continue to work on only that project.  You guys won’t benefit as much from this tip as those of us who switch between multiple projects in a day.  But you will benefit.

My development life has me currently working for two separate clients that require the use of Visual Studio.  I’m in the mist of integrating changes from two different versions (branch and merge operation) into one of the branches.  This alone has me opening and closing three different projects.  Another client might have me work on a bug fix at one time and the main project of the month at another.

Opening each of those requires that I fire up Visual Studio and wait a bit while it loads, and then open the solution file or web application for whatever I need to work on.

Did you know you can shave a significant amount of time by telling Visual Studio to not load the splash screen when it starts up?  Your mileage may vary, but it definitely helped me.

In your shortcut that you probably already have for starting Visual Studio, either in the menu or the quick launch bar, all you need to do is to add the /nosplash parameter to the command line.

“C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe” /nosplash

To be fair I just learned this from someone who posted on twitter this week.  The original article I learned this from is here:

http://visualstudiohacks.com/tips/save-time-at-startup-by-skipping-the-splash/

The next trick allows me to start a solution at the same time that I start Visual Studio.  So with one click, I’m starting up Visual Studio and loading my project.  This saves me a lot of time, especially with projects that I’ve named the same name, but live in two different directories.

“…\devenv.exe” “path to solution file”

You can copy an paste your exising shortcut file to a new shortcut file and then modify the Target field to have the additional solution parameter.

To use both of these together, put the solution file first and the /nosplash second.

To see other command line options, run devenv.exe with the /? parameter.

Other places talking about Visual Studio Command Line:

Build Silverlight Visual Studio Project from a command line : The … – Microsoft portal site for the Silverlight development community. Download Silverlight, post to the forums, read Silverlight blogs and learn about Silverlight.

Part 2: Setting up a continuous integration environment for Visual … – Part 2: Setting up a continuous integration environment for Visual Studio 2008 and .NET Framework 3.5 – Setting up Subversion 1.5.4 at the build machine. Last time on the part 1 of this series, we downloaded the tools required for our …

Visual Studio Command Line Build Troubles – You can build Visual Studio projects by the command line with the following switches devevnv.exe /rebuild to rebuild the entire solution. For example devenv.exe my_solution.sln /rebuild Release or to build a single project devenv.exe …

How to open a website in Visual Studio 2005 from the command line … – I’ve seen several queries asking how to launch Visual Studio 2005 opening a specific folder as a website from the command line. Unfortunately Visual Studio 2005 does not support this by default but you can enable the scenario by writing …

Related Post

  • Windows Forms – Passing Parameters at RuntimeWindows Forms – Passing Parameters at Runtime I received the following question over the weekend: I've made a C# form application and I need to send a report name at runtime. How do I add an incoming parameter to the command line? Such as "c...
  • DotNetNuke Modules – Creating Base ModulesDotNetNuke Modules – Creating Base Modules Now that we have DotNetNuke installed into Visual Studio we can go ahead and create our first modules. Actually, creating the modules is pretty simple. But it is even easier to do it wrong, which...
  • CSharp’s Property ShortcutsCSharp’s Property Shortcuts There are a lot of nice shortcuts in the CSharp language that most of us never use.  But if you take the time to learn them, you can be as productive as a student I had who had learned all the keyb...
  • DotNetNuke Modules – Install DNN into VS 2008DotNetNuke Modules – Install DNN into VS 2008 Today, we will install DotNetNuke into Visual Studio so that we can create our first module. So fire up Visual Studio, and let's get going. I'll be using Visual Studio 2008 to walk you thro...
  • ListView and the DataPagerListView and the DataPager One of the new controls that Visual Studio 2008 brings us is the ListView.  Now, the ListView control is really several different controls all rolled into one.  There is a lot to see with this cont...