Step by step Installation of C# Extension in Visual Studio Code

C# Extension for Visual Studio Code provides lightweight development tools for .NET Core. By default it includes C# editing support, Syntax Highlighting, IntelliSense, Go to Definition feature etc. You need this extension if you are working with .net core in visual studio.

This topic explains how to find and install C# extension in vs code.

So first install Visual studio code on your machine if you haven’t. You can download Visual Studio code from here:

Install Visual Studio Code

Find and Install Extension within VS Code

1. You can browse and install extensions from within VS Code easily. To open Extension view click on the Extensions icon in the Activity Bar on the left side of VS Code or press ctrl + shift + x.

find and install extension in vs code

2. Type the name of the extension in Search box at the top of the Extensions View. To find the c# extension type c# extension. You can see a list of recommended extensions.

3. Click the Install button. After a successfully installation, you’ll see an Reload button which will prompt you to restart VS Code to enable the c# extension.

C# extension supports debugging for .NET Core (CoreCLR). Unfortunately Mono and Desktop CLR debugging is not supported. The first time when your C# code is opened in VS Code, the C# extension will download the platform-specific files needed for debugging and editing. This is necessary steps and extension will do automatically. Debugging and editor features will not work until these steps finish.

See this Creating a Hello World application with C# and .NET Core in VS Code