Edit

Quickstart: Explore the Visual Studio IDE for JavaScript

In this Quickstart, you explore the Visual Studio integrated development environment (IDE). This article provides a 5-10 minute introduction to help you become familiar with the windows, menus, and other features available for JavaScript development.

If you don't have Visual Studio, you can install the free trial version from the Visual Studio Downloads page.

Use the Start Window

The first thing you see after you launch Visual Studio is the Start Window. The Start Window is designed to help you "get to code" faster. There are options to clone or check out code, open an existing project or solution, create a new project, or open a folder with code files.

If you're already working in Visual Studio, you can open the Start Window by selecting File > Start Window.

Screenshot of the Start Window when Visual Studio opens.

Screenshot of the Start Window when Visual Studio 2022 opens.

If you're new to working with Visual Studio, your recent projects list might be empty.

If you work with non-MSBuild based codebases, use the Open a folder option to open your code in Visual Studio. For more information, see Develop code in Visual Studio without projects or solutions. Otherwise, you can create a new project or clone a project from a source provider such as GitHub or Azure DevOps.

If you work with non-MSBuild based codebases, use the Open a local folder option to open your code in Visual Studio. For more information, see Develop code in Visual Studio without projects or solutions. Otherwise, you can create a new project or clone a project from a source provider such as GitHub or Azure DevOps.

When you launch Visual Studio, the Start Window includes the Continue without code option. This action lets you open the Visual Studio development environment without any specific project or code loaded. You might use this option to join a Live Share session or attach to a process for debugging. You can also select the Esc key to close the Start Window and open the IDE.

Create a project

To continue exploring Visual Studio's features, create a new project. Visual Studio provides various kinds of project templates that help you get started coding quickly.

  1. In the Start Window, select Create a new project. The window refreshes to show options for creating the new project.

  2. In the Search for templates box, enter javascript or typescript.

    Your input text filters the list of project types to show templates that contain "JavaScript" or "TypeScript" in their name or language type.

    Screenshot that shows how to use the 'Search for templates' filter to find JavaScript templates in the Visual Studio Start Window.

    Screenshot that shows how to use the 'Search for templates' filter to find JavaScript templates in the Visual Studio 2022 Start Window.

  3. Select the JavaScript Express Application project template and select Next.

  4. In the Configure your new project window, accept the default project name, and select Create.

Visual Studio creates the project and opens it in the IDE. The files and folders for the project are visible in Solution Explorer.

Browse your project in Solution Explorer

The Solution Explorer pane typically opens on the right side of the Visual Studio IDE. This window shows a graphical representation of the hierarchy of files and folders in your project, solution, or code folder.

Screenshot of the new project open in Solution Explorer in Visual Studio.

Screenshot of the new project open Solution Explorer in Visual Studio 2022.

You can browse the hierarchy, search for a specific file or folder, and select a file to open it.

Open files in the code editor

In Solution Explorer, select the app.js file to open the file in the Editor window. The Editor shows the contents of files, and is where you do most of your coding work in Visual Studio.

Screenshot of the application file open in the editor in Visual Studio.

Screenshot of the application file open in the editor in Visual Studio 2022.

Explore the main menus

The menu bar along the top of Visual Studio IDE provides quick access to groups of commands arranged by category. 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 of the menu bar in Visual Studio.

Screenshot of the menu bar in Visual Studio 2022.

Select View to see the list of view-related commands, and then select Error List to open the Error List window.

Review errors and warnings in the Error List

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

Screenshot of the Error List in Visual Studio.

Screenshot of the Error List in Visual Studio 2022.

Check build messages in the Output window

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

Build your new project so you can explore the build messages in the Output window. On the menu bar, select Build > Build Solution.

The Output window automatically obtains focus and display a successful build message.

Screenshot of the Output window in Visual Studio showing minimal build output.

Screenshot of the Output window in Visual Studio 2022 showing minimal build output.

Search for commands and features

The Search box is a quick and easy way to do most anything in Visual Studio. You can enter some text related to what you want to do, and the search results show a list of options related to your input text.

Suppose you want to increase the build output verbosity to see more details about what the build is doing. You can follow these steps:

  1. If you don't see the Search box, use the Ctrl+Q keyboard shortcut. In the Search box, enter verbosity.
  1. In the results list, double-click the MSBuild project build output verbosity (projectsAndSolutions.buildAndRun.outputVerbosity) entry.

    Screenshot that shows how to use the Search box in Visual Studio.

    The Options pane opens to the All Settings > Projects and Solutions > Build And Run section.

  2. Use the dropdown and set the MSBuild project build output verbosity option to Normal.

  1. In the results list, double-click the Change MSBuild verbosity (Projects and Solutions > Build and Run) entry.

    Screenshot that shows how to use the Search box in Visual Studio.

    The Options dialog opens to the Projects and Solutions > Build And Run section.

  2. Use the dropdown and set the MSBuild project build output verbosity option to Normal, and select OK.

  1. Build the project again by right-clicking the project in Solution Explorer and selecting Rebuild in the context menu.

    This time, the Output window shows more verbose logging from the build process.

    Screenshot of verbose build output in Visual Studio.

    Screenshot of verbose build output in Visual Studio 2022.

Send feedback

If 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 at the top of the Visual Studio window.

Screenshot that shows how to access the Send Feedback menu in Visual Studio.

Screenshot that shows how to access the Send Feedback menu in Visual Studio 2022.