用户登录
用户注册

分享至

如何停止 IntelliJ 中的所有进程?

  • 作者: 角落落的光
  • 来源: 51数据库
  • 2023-01-14

问题描述

我正在使用 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:

对于旧版本:

  1. 单击顶部栏中的停止"按钮.它将弹出一个列出所有进程的菜单.(调试窗口一侧的停止按钮是每个进程的,如您的屏幕截图所示.)

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

将鼠标悬停在第一个进程上,按住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:

软件
前端设计
程序设计
Java相关