How do I set VS Code as the external text editor on Linux?

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

Hello again.
I use Linux Mint 19.3. I want to use VS Code as the external editor for Godot. The problem is, neither the path to VS Code (/usr/bin/code) nor the command code work. Someone help.

:bust_in_silhouette: Reply From: mobilinn

Update: This is just an error with the flatpak version. Godot from the website works fine.

Thanks for this!

As it turns out, external editors are supported using the Flatpak version. You just need to use the flatpack-spawn command instead of directly launching code.

See here:
GitHub - flathub/org.godotengine.Godot: Godot engine

bridsy | 2021-06-10 19:23