Quick Start
Get started using C# Dev Tools with these simple steps.
Opening a Project
- Open VS Code
- Select File > Open Folder and navigate to a folder containing your .NET solution
- Once opened, the Solution Explorer should automatically appear in the Activity Bar on the left
- If the Solution Explorer doesn't appear, click the C# icon in the Activity Bar
Interactive Walkthroughs
C# Dev Tools includes interactive walkthroughs to help you learn its features:
- Press
Alt+Wto open the walkthroughs - Alternatively, use the Command Palette (
Ctrl+Shift+P) and type "C# Dev Tools: Open Extension Walkthroughs" - Follow the step-by-step guides to learn about each feature
Your First .NET Solution
If you're starting from scratch:
- Open the Solution Explorer
- Click the "Create New Solution" button in the Solution Explorer title bar
- Follow the prompts to create a new solution and project
- Your new solution will appear in the Solution Explorer
Adding Projects and Files
To add a new project to your solution:
- Right-click on the solution in the Solution Explorer
- Select Add > New Project
- Choose the project template and configure the options
- Click Create
To add a new file:
- Right-click on a project or folder in the Solution Explorer
- Navigate to Add and select the appropriate file type
- Enter a name for the file
- The new file will be created and opened in the editor
Building and Running
To build your solution:
- Right-click on the solution or project in the Solution Explorer
- Select Build
To run your application:
- Set a startup project by right-clicking on an executable project and selecting Set as Startup Project
- Press
F5to debug orCtrl+F5to run without debugging - Alternatively, use the run/debug buttons in the editor title bar
Next Steps
Now that you're familiar with the basics, explore these features:
- Solution Explorer: Learn how to navigate and manage your .NET solutions
- Test Explorer: Discover, run, and debug your tests
- Test Generation: Generate AI-powered unit tests with GitHub Copilot
- Advanced Search: Quickly find types and symbols in your codebase
- NuGet Management: Manage your project's packages