
326
|
Chapter 10, Work with Visual Studio Tools
#78 Launch Visual Studio from the Command Prompt
HACK
See Also
• “Combine the Visual Studio Command Prompt and the Command
Window”
[Hack #98]
HACK
#78
Launch Visual Studio from the Command
Prompt Hack #78
If you want to exercise obsessive control about how Visual Studio is
launched, you’ll be pleased to know that you can do it all from your friendly
neighborhood command prompt.
The Visual Studio IDE executable is called devenv.exe and includes a num-
ber of command-line switches that can be very useful. Elsewhere in this
book, we have looked at a couple of these switches, but in this hack, you
will learn about all the switches and how they can be used.
Typing command-line switches every time you launch an
application is time consuming and just plain inefficient.
Remember that you can create shortcuts that call an execut-
able using command-line switches; you could have a num-
ber of different shortcuts for Visual Studio with different
command-line switches.
Setting Fonts
One of the simplest, but very useful, things you can accomplish using com-
mand-line switches is setting the font and font size for the IDE. To specify
the font, you can use the
/fn switch, and to specify the size, you use /fs.Itis
important to note that this is not the font size of the text or contents of your
files, but rather the text size of the IDE. You won’t see it affect the normal
menus, ...