问题描述
我正在使用 intellij idea.
i am using intellij idea.
当我运行我的程序并关闭窗口时,该过程仍然存在.如果我运行很多程序,我需要多次点击断开连接.
when i run my programs and close the window, the process still remains. if i run a lot of programs, i need to click disconnect many times.
有没有办法停止所有进程?
is there any way to stop all processes?
eclipse 没有这个问题.
eclipse doesn't have this problem.
推荐答案
intellij 2017.2 现在在停止进程"菜单(顶部栏上的按钮)中有一个停止所有"按钮,默认快捷键 ? f2 在 osx 上:
intellij 2017.2 now has a "stop all" button in the "stop process" menu (the button on the top bar), with the default shortcut ? f2 on osx:
对于旧版本:
单击顶部栏中的停止"按钮.它将弹出一个列出所有进程的菜单.(调试窗口一侧的停止按钮是每个进程的,如您的屏幕截图所示.)
click the stop button from the top bar. it will pop open a menu listing all processes. (the stop button at the side of the debug window is per-process, as in your screenshot.)
将鼠标悬停在第一个进程上,按住shift,然后单击最后一个进程.
hover over the first process, hold shift, and then click on the last process.
按 enter.
显示步骤 1 和步骤结果的屏幕截图2:
screenshot showing the result of steps 1 & 2: