Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

設定 IDE

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

不管使用什麼文字編輯器都能輕鬆開發 Godot,並在命令行內呼叫 scons 。但若想以 IDE (整合開發環境, Integrated Development Environment) 來進行開發,下列為用於各個常用 IDE 的設定說明:

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

如果您的編輯器支援`語言伺服器協定<https://microsoft.github.io/language-server-protocol/>`__,您可以使用`clangd <https://clangd.llvm.org>`__ 來完成、診斷等等。您可以透過以下兩種方式之一產生與 clangd 一起使用的編譯資料庫:

# Generate compile_commands.json while compiling
scons compiledb=yes

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