Tutorial: First look at the Visual Studio IDE

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

In this 5-10 minute introduction to the Visual Studio integrated development environment (IDE), we'll take a tour of some of the windows, menus, and other UI features.

If you haven't already installed Visual Studio, go to the Visual Studio downloads page to install it for free.

Start Page

The first thing you'll see after you open Visual Studio is most likely the Start Page. The Start Page is designed as a "hub" to help you find the commands and project files you need faster. The Recent section displays projects and folders you've worked on recently. Under New project, you can click a link to bring up the New Project dialog box, or under Open, you can open an existing code project or folder. On the right is a feed of the latest developer news.

Screenshot of the Start Page in Visual Studio 2017.

If you close the Start Page and want to see it again, you can reopen it from the File menu.

Screenshot of the File menu in Visual Studio 2017.

Create a project

To continue exploring Visual Studio's features, let's create a new project.

  1. On the Start Page, in the search box under New project, type in console to filter the list of project types to those that contain "console" in their name.

    Screenshot showing a list of project templates on the Start Page in Visual Studio 2017.

    Visual Studio provides various kinds of project templates that help you get started coding quickly. Choose a C# Console App (.NET Core) project template. (Alternatively, if you're a Visual Basic, C++, JavaScript, or other language developer, feel free to create a project in one of those languages. The UI we'll be looking at is similar for all programming languages.)

  2. In the New Project dialog box that appears, accept the default project name and choose OK.

The project is created and a file named Program.cs opens in the Editor window. The Editor shows the contents of files and is where you'll do most of your coding work in Visual Studio.

Screenshot showing the Editor in Visual Studio 2017.

Solution Explorer

The menu bar along the top of Visual Studio groups commands into categories. For example, the Project menu contains commands related to the project you're working in. On the Tools menu, you can customize how Visual Studio behaves by selecting Options, or add features to your installation by selecting Get Tools and Features.

Screenshot showing the Menu bar in Visual Studio 2017.

Error List

The Error List shows you errors, warning, and messages about the current state of your code. If there are errors (like a missing brace or semicolon) in your file or anywhere in your project, they're listed here.

To open the Error List window, choose the View menu, and then select Error List.

Output window

The Output window shows you output messages from building your project and from your source control provider.

Let's build the project to see some build output. From the Build menu, choose Build Solution. The Output window automatically obtains focus and shows a successful build message.

The search box is a quick and easy way to find just about anything in Visual Studio. You can enter some text related to what you want to do, and it will show you a list of options that are relevant to the text. For example, imagine you want to increase the verbosity of the build output to display more details about what the build is doing. Here's how you might do that:

  1. Locate the Quick Launch search box in the upper right of the IDE. (Alternatively, press Ctrl+Q to access it.)

  2. Type verbosity into the search box. From the displayed results, choose Projects and Solutions --> Build and Run under the Options category.

    Screenshot of the Quick launch search box in Visual Studio 2017.

    The Options dialog box opens to the Build and Run options page.

  3. Under MSBuild project build output verbosity, choose Normal, and then click OK.

  4. Build the project again by right-clicking on the ConsoleApp1 project in Solution Explorer and choosing Rebuild from the context menu.

    This time the Output window shows more verbose logging from the build process, including which files were copied where.

    Screenshot of a more detailed build log within the Output window in Visual Studio 2017.

Send Feedback menu

Should you encounter any problems while you're using Visual Studio, or if you have suggestions for how to improve the product, you can use the Send Feedback menu near the top of the Visual Studio window.

Screenshot of the Send Feedback menu in Visual Studio 2017.

Next steps

We've looked at just a few of the features of Visual Studio to get acquainted with the user interface. To explore further:

See also