KDevelop

KDevelop 是一个适用于所有桌面平台的免费开源IDE。

导入项目

  • From the KDevelop's main screen select Open Project.

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

KDevelop的主屏幕。

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

  • On the next screen, choose Custom Build System for the Project Manager.

../../../_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(自定义构建系统)**下添加一个新的构建配置,设置如下:

    Build Directory

    blank

    启用

    True

    可执行文件名称

    scons

    参数

    See 构建系统介绍 for a full list of arguments.

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

Debugging the project

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

../../../_images/kdevelop_configlaunches.png
  • Click Add to create a new launch configuration.

  • 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.x11.tools.64 for 64-bit X11 platform with tools enabled.

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

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