How can I run C# code in Visual Studio Code?

I’m currently starting Mosh’s C#'s first course, but I won’t be coding with Visual Studio Community, as he says us to. That’s because the software it installs in my computer really slows it down.

Anyway, I was wondering what do I need to set or install to get started.

Hey,

Install Visual Studio Code which is lightweight and free, add C# extension. Use the terminal in VS code to create the project you want (type dotnet new -l) to list all the templates you can create project from. Then run the project by typing dotnet run or dotnet watch run

1 Like

You would also need to install the .NET SDK from Microsoft’s website.

1 Like