Category Archives: C#

Getting Visual Studio Code & Godot 3.0 Mono working on Windows

When working with godot 3.0 and the C# api you may want to have some intellisense support. Well, lately there’s been some confusion on how to properly get that working and I’m going to help you get started in a few easy steps.

Requirements

Download & install the following

Now Omnisharp requires Windows 8 (.NET 4.5) SDK or the intellisense will not work.  Some people may already have this installed, some may not, but if intellisense doesn’t work this is one of the root causes on why it’s not working.

Gotcha: If your project name has spaces then omnisharp may not pick up the project and you’ll need to remove the spaces from your project name and files. Rule of thumb: never have spaces in your project name or filenames, it’ll probably cause more problems than it should.)

Get Coding

Once you’ve built your project, by either pressing the start scene icon or manually building from the mono tab at the bottom of your editor, open the project folder inside visual studio code. Now you should test the intellisense by typing GD.P to see if GD.Print auto-completes. If it auto-completes the godot method then you’ve successfully setup visual studio code to work on your godot 3 C# projects!

Happy Deving