How can I stop all processes in IntelliJ?

て烟熏妆下的殇ゞ 提交于 2020-01-10 01:05:06

问题


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 doesn't have this problem.


回答1:


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:

For older versions:

  1. 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.)

  2. Hover over the first process, hold Shift, and then click on the last process.

  3. Press Enter.

Screenshot showing the result of steps 1 & 2:




回答2:


kill $(ps aux | grep 'java' | awk '{print $2}')

This is a nice little workaround I found on SO a while ago that will kill any process with "java" in the name.

Just copy and paste into the terminal.




回答3:


Not exactly perfect, but what you could do is press Ctrl + F2 (shortcut for Stop Process) and hit Enter. It's better than all that mouse clicking and gets you through a list of running processes quite fast.



来源:https://stackoverflow.com/questions/36212930/how-can-i-stop-all-processes-in-intellij

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!