gpt4 book ai didi

intellij-idea - 如何在新运行 intellij 之前停止所有正在运行的进程

转载 作者:行者123 更新时间:2023-12-05 06:32:31 26 4
gpt4 key购买 nike

有什么方法可以在 IntelliJ 中配置运行配置,在运行新运行之前停止所有正在运行的进程?

我总是忘记停止之前的运行。所以我碰到了它说端口在上一次运行时很忙的地步。所以我必须停止之前的运行并重新启动新的运行。这需要很长时间。我想知道应该有什么方法可以简化这个过程。请让我知道任何想法?

p.s:我试过用宏来记录多个步骤。那不能正常工作。

最佳答案

正如 JB Nizet 在评论中所说,您可以在 Run/Debug Configurations 面板中选中 Single instance only 复选框。

根据documentation :

Single instance only. In this case, a confirmation dialog box will show up every time you try to launch run/debug configuration, when one instance of the same type is still running.

If you click OK in the confirmation dialog box, the first instance of the runner will be stopped, and the next one will take its place.

If this checkbox is not selected, you can launch as many instances of the runner as required. As the result, each runner will start in its own tab of the Run tool window.

关于intellij-idea - 如何在新运行 intellij 之前停止所有正在运行的进程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51221054/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com