Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

設定 IDE

我們假設你已經 clone編譯 Godot 完成。

你可以用任何文字編輯器配合命令列執行 scons 來輕鬆開發 Godot,但如果你想用 IDE(整合開發環境,Integrated Development Environment),以下提供幾個常見 IDE 的設定教學:

也可以使用其他 IDE,但尚未有相關的設定文件。

如果你的編輯器支援 語言伺服器協定,可以用 clangd 來完成補全、診斷等功能。可透過下列兩種方式之一產生 clangd 所需的編譯資料庫:

# Generate compile_commands.json while compiling
scons compiledb=yes

# Generate compile_commands.json without compiling
scons compiledb=yes compile_commands.json