A debug window opens in your perspective ( Alt + Shift + Q , Q -> find Debug). After starting your application, use CTRL + F7 ( Command + F7 on Mac) to switch to debug mode, press down to highlight the running application, and activate the termination shortcut
Referring to this answer, I do not think that it works all the time, because depending on what was started, eclipse may not register the terminate command as available.
For example, when I start my project using maven (m2e plugin), the completion button on the console view is available, but not on the menu. See screenshot below (I used Springsource Tools Suite 2.9.2, which is based on eclipse indigo and m2e 1.0.200)

This is because the running application is not selected by default in the debug view.
This issue is discussed in the forum.
gerrytan Jul 06 2018-12-12T00: 00Z
source share