Up to date

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

KDevelop

KDevelop 是一个适用于所有桌面平台的自由且开源的 IDE。

导入项目

  • 在KDevelop的主屏幕上选择 Open Project .

../../../_images/kdevelop_newproject.png

KDevelop的主屏幕.

  • 导航到这Godot根文件夹并选择它.

  • 在下一个屏幕上, 为 项目管理器 选择 自定义构建系统 .

../../../_images/kdevelop_custombuild.png
  • 在导入项目后,在项目面板中单击右键并选择打开配置... 来打开项目配置。

../../../_images/kdevelop_openconfig.png
  • Language Support(语言支持) 下打开 Includes/Imports(包含/导入) 标签并添加以下路径:

    .  // A dot, to indicate the root of the Godot project
    core/
    core/os/
    core/math/
    drivers/
    platform/<your_platform>/  // Replace <your_platform> with a folder
                                  corresponding to your current platform
    
../../../_images/kdevelop_addincludes.png
  • 应用更改.

  • Custom Build System(自定义构建系统) 下添加一个新的构建配置, 设置如下:

    构建目录

    blank

    Enable

    True

    可执行文件名称

    scons

    参数

    参见 构建系统介绍, 获取完整的参数列表.

../../../_images/kdevelop_buildconfig.png
  • 应用更改并关闭配置窗口.

调试项目

  • 从这顶部菜单选择 Run > Configure Launches... [运行>配置选项].

../../../_images/kdevelop_configlaunches.png
  • 单击 Add 以创建新的启动配置.

  • Select Executable option and specify the path to your executable located in the <Godot root directory>/bin folder. The name depends on your build configuration, e.g. godot.linuxbsd.editor.dev.x86_64 for 64-bit LinuxBSD platform with platform=editor and dev_build=yes.

../../../_images/kdevelop_configlaunches2.png

如果遇到问题, 也可在 Godot 社区论坛 中寻求帮助.