从命令行调用Intellij Run/Debug配置?

发布于 2025-02-09 18:50:02 字数 682 浏览 2 评论 0原文

我在我的喷气桥IDE中定义了一些运行/调试配置,并且显然您通常会按绿色的“播放”图标;

但是,我想将其与我在计算机上的脚本相结合,该脚本检测文件系统会更改并重新运行后台的一些验证步骤;

现在我想做的就是说'当CLI检测到某物是陈旧时,在IDE中开始运行/调试配置时。

因此,在伪式刺激中,

# if any "*.rs" file changes, press the green button in intellij;
watch-files *.rs -x "run-intellij-config 'check controlplane'

类似这样的事情可以在Intellij中调用任务吗?

I've got some Run/Debug Configurations defined in my JetBrains IDE, and to run them obviously you'd normally press the green 'play' icon;

run/debug configuration

However, I want to combine that with scripts I've got on my machine which detect file system changes and re-run some validation steps in the background;

cargo watch

Now what I'd like to do is to say something like 'when the CLI detects that something is stale, start the run/debug configuration in the IDE'.

So in pseudo-bash, something like

# if any "*.rs" file changes, press the green button in intellij;
watch-files *.rs -x "run-intellij-config 'check controlplane'

Is it possible to invoke tasks within IntelliJ like this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

再见回来 2025-02-16 18:50:02

目前无法做到这一点,请投票给 indue-157076 将在此功能请求的任何进度中通知

There is no way to do this currently, please vote for IDEA-157076 to be notified on any progress with this feature request

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文