This is assuming that you already have VS Code installed. At the time of this writing I’m on version 1.45. The next two don’t affect each other, so you can install them in either order. You want the C# extension and the .NET Core SDK.

After these are installed, I personally have been installing an extension pack called .NET Core Extension Pack. Like most extension packs I should probably look into each of the extensions more than I do. I’ve noticed that at least one of the included extensions in this pack is no longer under development. There are currently 18 extensions included and I’m too lazy to figure out which ones I even use :)

At this point you should be able to open your terminal window within VS Code and run the following commands from the location you want to create a test project in:

mkdir helloWorld
cd helloWorld
dotnet new console
dotnet run

DONE! The final command should return:

Hello World!

When reviewing old guides, this is now EXTREMELY quick to setup, which kind of makes sense given the Microsoft connection. I was actually surprised to see how disjointed the setup was in the past. Apparently, I held off long enough for a lot of the pieces to get better integrated. Yeah, for procrastination! Not really, it doesn’t work out well most of the time, except if you like high levels of stress. As always, stay inb8a!