Version 1.83 is now available! Read about the new features and fixes from September.
Dismiss this update
.NET provides a fast and modular platform for creating many different types of applications that run on Windows, Linux, and macOS. Use Visual Studio Code with the C# and F# extensions to get a powerful editing experience with C# IntelliSense, F# IntelliSense (smart code completion), and debugging.
If you are an existing VS Code user, you can add .NET support by installing the C# Dev Kit extension. C# Dev Kit brings a productive and reliable C# experience into VS Code, facilitating C# or multi-language development in VS Code. This extension pack consists of a set of VS Code extensions that work together to provide a rich C# editing experience, AI-powered development, solution management, and integrated testing experiences. As shown in the graphic below, C# Dev Kit consists of:
If your projects require F# support, you can also download the .NET Extension Pack, which includes these extensions:
You can also install extensions separately.
To help you set up quickly, you can install the .NET Coding Pack, which includes VS Code, the .NET Software Development Kit, and essential .NET extensions. The Coding Pack can be used as a clean installation, or to update or repair an existing development environment.
Install the .NET Coding Pack - Windows
Install the .NET Coding Pack - macOS
Note: The .NET Coding Pack is only available for Windows and macOS. For other operating systems, you will need to manually install the .NET SDK, VS Code, and .NET extensions.
If you download the extensions separately, ensure that you also have the .NET SDK on your local environment. The .NET SDK is a software development environment used for developing .NET applications.
Initialize a C# project:
dotnet new console
When the project folder is first opened in VS Code:
Run the app by entering the following command in the command shell:
dotnet run
Initialize an F# project:
dotnet new console -lang "F#"
Once it completes, open the project in Visual Studio Code:
code .
Run the app by entering the following command in the command shell:
dotnet run