How to Use Visual Studio Code With Godot
Max O'Didily
How to Use Visual Studio Code With Godot
Link to download Visual Studio Code: https://code.visualstudio.com/download
Link to Godot docs: https://docs.godotengine.org/en/stable/contributing/development/configuring_an_ide/visual_studio_code.html
Exec flags: {project} --goto {file}:{line}:{col}
Greetings, in this Godot tutorial we shall be looking at how to setup Godot with Visual Studio Code, so you can use Visual Studio code to type code for your Godot game. This tutorial will cover how to connect VsCode to Godot.
To use Godot with VSCode, you need to have VSCode installed. Figure out where you have VSCode installed, then make a note of the filepath. Then in Godot go to Editor, then editor settings, then go to Text editor settings, then to external.
In Godot you then need to tick user external editor. Then for Exec path you need to put in the filepath to where your VSCode is installed and make sure it directs to a file called Code.exe. For the Exec flags do the following: {project} --goto {file}:{line}:{col}
Now open up VSCode and install the godot-tools extension. You can either search for it in Visual Studio Code or install godot-tools from this link:
https://marketplace.visualstudio.com/items?itemName=geequlim.godot-tools
After installing godot-tools into your Visual Studio Code IDE, if you get a popup message saying "The specified godot executable is invalid" click on select Godot executable and locate your godot.windows.opt.tools.64.exe file (where your Godot is installed). That will fix the error. Now we can move onto the next step on connecting VsCode to Godot.
Now you need to go to the godot-tools settings and set the LSP server port to be the same value as the remote port in your Godot. In Godot in editor settings you can find the Godot remote port in Editor, Editor Settings, Network, Language settings.
Thanks for watching this tutorial on how to get VSCode working with Godot.
After that you have got everything you need to use Godot with VsCode.
Thanks for watching this Godot tutorial on how to setup Godot with Visual Studio Code.
If this Godot tutorial on how to use Visual Studio Code with Godot was useful, then be sure to subscribe for more tutorials.
How to Use Visual Studio Code With Godot ... https://www.youtube.com/watch?v=uUGnmXIntIM
22385777 Bytes