Skip to content

VSCode Setup

Valk edited this page Oct 25, 2022 · 1 revision

VSCode

The built in Godot scripting editor is awful for C# scripting. VSCode is free software, I recommend you use that or JetBrains C# which is not free.

  1. Install VSCode (or VSCodium which is VSCode without the built-in telemetry)
  2. Required extensions to work with Godot
  3. Optional extensions that are useful to have
  4. Launch Godot through VSCode by hitting F1 to open up VSCode command and run godot tools: open workspace with godot editor or simply click the Open Godot Editor button bottom right popup
  5. Set Godot > Editor > Editor Settings > Mono > Editor > External Editor to Visual Studio Code

Note that you can add these files to exclude from your file view in VSCode (it makes the file structure on the left prettier) (I don't know where to paste this in VSCode as I manually edited this directly in the settings, if anyone figures out where please tell me!)

VSCode Configurations

  1. Under .vscode/ add launch.json and tasks.json files and replace all instances of <GODOT_PATH> with the path to the Godot executable
  2. Enable Wait For Debugger option in Godot > Project > Project Settings > Mono > Debugger Agent
  3. Use the attach VSCode configuration, set one or more breakpoints and launch Godot game to start debugging
Clone this wiki locally