Visual Studio Code is a lightweight but powerful cross-platform source code editor support C++, C#, Python, PHP and other languages.
For debug C# code do next steps.
- Download and install .NET Core (https://www.microsoft.com/net/download/core) for your OS x64 or x86.
Run Visual Studio Code, install C# extension and restart VSC editor.
Initialize a C# project:
Open folder where you’d like to create the C# project.
Open Terminal (Ctrl+`), run command “dotnet new” and wait when VSC create project. After that, if you look in your folder, you can fond Programm.cs file with simple hello world C# code.
Resolve the build assets by typing “
Now you can type “dotnet run” in terminal for compile and run project
Now restart you VSC editor and if you have missing extensions, VSC automatically download and install him.
Go to the debug view (Ctrl+Sift+D) and add .NET Core configuration. Select “.NET Core Launch (console)” configuration on debug drop down list and edit him.
Now you can start debugging (F5) your code.