Configure VSCode to contribute with code for Godot Engine repository

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By gcardozo

I want to start contributing with code to Godot Engine repository and I want to use VSCode. I’ve cloned the repository, built the engine with scons but VSCode is aking me to configure the includePath and I don’t know which folders should be included. I’ve tried including the folders listed here but I still got the cannot open source file "vcruntime.h" (dependency of "main.h") from VSCode.
Does anyone here uses VSCode instead of Visual Studio Community to contribute with code to Godot?

Thanks in advance!

I think vcruntime.h is part of the Visual Studio SDK (not the full IDE, just the compiler toolchain), you may need it to compile the project on Windows. However i don’t know if VSCode is supposed to know where it is or if you have to include that path yourself.

Zylann | 2018-10-25 12:52

Hmm I see, thanks! :slight_smile:

gcardozo | 2018-10-25 15:12

:bust_in_silhouette: Reply From: gamedevsam

I was able to get this working on Windows 10 with VSCode and Visual C++ toolchain for anyone else looking for instructions:

1 - Follow the instructions on this comment to Install Visual C++ Build Tools 2019: Compile error on Windows using MinGW · Issue #35022 · godotengine/godot · GitHub

2 - Install Scoop:

3 - Install Scons and Python with Scoop:

scoop install python scons

4 - Clone Godot, and extract the contents of this zip file into it (contains vscode settings for compiling on windows): - Google Drive

You’re done!

Now you can use Ctrl + Shift + B (the default build task) to compile, and F5 to debug just like with Visual Studio, but with the wonderful VSCode.