Visual Studio Code as External Editor

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

I’ve installed Visual Studio Code and set it as my external editor in Godot, but whenever I try to open a script, C# spits out this error:

platform\windows\os_windows.cpp:2054 - Condition ' ret == 0 ' is true. returned: ERR_CANT_FORK
 modules\mono\editor\godotsharp_editor.cpp:201 - GodotSharp: Could not execute external editor
 editor\plugins\script_editor_plugin.cpp:1685 - Couldn't open script in the overridden external text editor

What’s going on here? Am I missing a step? I really need this, as debugging with GD.Print() is driving me crazy.

Is code available in your PATH environment variable? You can check by opening a Command Prompt then typing code; it should open Visual Studio Code.

Calinou | 2018-03-21 17:48

Doesn’t look like it.

KinguKurimuzon | 2018-03-21 21:07

I’m having the same problem and VScode is in my PATH… Any other ideas?

Rui Rei | 2020-01-31 08:02