Building Your First Program
5
CONFIGURING THE IDE
When you first run Visual Studio, it asks how you want to configure the IDE. You can pick settings
for general development, Visual Basic, Visual C#, and so forth. Because you’re going to be focusing
on C# development, select that option.
These settings determine such things as what keystrokes activate certain devel-
opment features. You can certainly write C# programs with the Visual C++
settings but we may as well be on the same page, so when I say, “Press F5,”
the IDE starts your program instead of displaying a code window or whatever
Visual C++ thinks F5 means.
If you ever want to switch to different set-
tings (for example, if you got carried away
during installation and selected the general
settings and now want the C# settings),
you can always change them later.
To change the settings later, open
the Tools menu and select Import and
Export Settings to display the Import
and Export Settings Wizard. You can use
this tool to save your current settings,
reload previously saved settings, or reset
settings to default values.
To reset settings, select the Reset All
Settings option on the wizard’s first page
and click Next.
On the next page, indicate whether you
want to save your current settings. When
you’ve made your choice, click Next to
display the page shown in Figure 1-1.
Select the Visual C# Development
Settings choice and click Finish. (Then sit back and wait. Or better still, go get a coffee because
this could take a while. Visual Studio has a lot of settings to reset, and it could take several minutes
depending on how fast and busy your computer is.)
BUILDING YOUR FIRST PROGRAM
Now that you’ve installed C#, you’re ready to get started. Launch Visual Studio by double-clicking
its desktop icon or by selecting it from the system’s Start menu.
FIGURE 11
596906c01.indd 5 4/7/10 12:31:23 PM