如何修改保存源文件后调用的调试 (运行) 配置?

How to modify debug (run) configuration that gets called after saving source file?

每当我在 DDT 中保存 app.d 文件时,该文件都会使用 dub build 进行编译。当我想自定义选项时该怎么办,例如获取单元测试(即 运行 dub build -b unittest)?

编辑 run/debug 配置没有帮助。

一个 D 项目已经有不同的构建目标,包括一个用于构建(和 运行)测试的目标。您还可以为每个目标配置额外的 DUB 选项。在此处查看更多信息:https://github.com/DDT-IDE/DDT/blob/latest/documentation/UserGuide.md#project-building