1. Download Godot Mono or C#
2. Download VS Code

4. Create C# script Godot Engine will let us write code in VS Code program
5. Set up VS Code by going to View>Extensions menu, select Load
Godot Tools, C# Tools for Godot, C#, C# Dev Kit
6.Install .NET, here use 22.04, install only SDK
7.Go back to VS Code settings, go to View/Run menu, select Create a launching group file, the program will create a debug file, press the Add Configuration button, select .NET Remote Debugging both
In the “program” section, enter the address of the Godot program used to read the file
Delete the “pipeTransport” section on every line, as shown in the picture
(must do with every project created)
The program will create a debugger in the program without having to switch back and forth between Godot editor and VS Code.
Press F5 to run and see the results immediately.
P.S.
1. The reason to use VS Code is because it has Auto Complete, which makes coding very convenient. In Godot Editor, there is Auto Complete only for GDScript language.
2. In the part that must be done with every project created, switch to run the game in Godot Editor instead. Use VS Code because it has Auto Complete for C# language.
No comments:
Post a Comment