+1 vote

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!

in Engine by (28 points)

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.

Hmm I see, thanks! :)

1 Answer

+1 vote
Best answer

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: https://github.com/godotengine/godot/issues/35022#issuecomment-575861242

2 - Install Scoop: https://scoop.sh/

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): https://drive.google.com/open?id=1UQBuEcYnafGDcF5v6SzwWnnl2vll6kvM

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.

by (46 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.