【Godot】Setting Up VSCode / Cursor as External Editor

Created: 2025-08-13Last updated: 2025-12-06

How to configure VSCode or Cursor as external editor in Godot to leverage AI completion and extensions

Overview

While Godot's built-in editor is quite powerful, integrating external editors like VSCode or Cursor can boost your development efficiency.

Why Use an External Editor?

  • AI Completion: Accelerate code generation and review with AI features in Cursor
  • Rich Extensions: Leverage themes, linters, Git integration tools, and more
  • Advanced Editing: Simultaneous multi-file editing, powerful search and replace

Setup Steps

Step 1: Open External Editor Settings

  1. Select "Editor" → "Editor Settings" from the menu bar
  2. Click "Text Editor" → "External" in the left panel
  3. Turn on "Advanced Settings" in the top right
Editor Settings Screen

Step 2: Configure Path and Flags

External Editor Settings Screen
  1. Check Use External Editor
  2. Specify editor executable path in Exec Path

Windows (Cursor example):

C:\Users\<username>\AppData\Local\Programs\Cursor\Cursor.exe

macOS (Cursor example):

/Applications/Cursor.app/Contents/MacOS/Cursor
  1. Set Exec Flags as follows (enables jumping to specific lines)
{project} --goto {file}:{line}:{col}

Step 3: Configure Debug and Auto-Reload

Debug Integration: Check "Debug" → "Debug with External Editor" at the top of the script editor. When errors occur, the external editor opens to the relevant location.

Debug Settings

Auto-Reload: Enable "Editor Settings" → "Text Editor" → "Behavior" → "Auto Reload Scripts on External Change". Saves in external editor are immediately reflected in Godot.

Troubleshooting

IssueWhat to Check
File won't openVerify Exec Path and flags syntax
Changes not reflectedEnable Auto Reload Scripts on External Change
Internal editor opens on debugEnable Debug with External Editor