是否有用于在Eclipse中停止当前控制台的键盘快捷方式? [英] Is there a keyboard shortcut for stopping the current console in Eclipse?

查看:543
本文介绍了是否有用于在Eclipse中停止当前控制台的键盘快捷方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个包含main的类的Java应用程序。我可以使用 Ctrl + Alt + XJ 启动应用程序,随后应用程序可以通过点击 Alt + RT Enter 选择运行历史记录中第一个项目的菜单选项。



但是,要停止应用程序,我必须点击小红色方块在控制台视图中。这是恼人的,因为它强制我使用鼠标,键入 Alt + RT Enter 然后再次使用鼠标重新编辑编辑器。



Eclipse是如此配置,必须有一个键盘快捷方式来停止在当前控制台中运行的应用程序,我没有找到。 c c c> c> c> c> c> c> c> c> c> c>终止和重新启动,但无论我分配什么绑定或什么当我设置的条件,无论我是否使用Debug透视图,他们似乎没有开火。



请帮助Eclipse新手避免使用鼠标:)

解决方案

转到首选项 - >常规 - >键



查找终止将绑定设置为任何您想要的。



然后将调试更改为编辑Java源。


I'm developping a Java application with a class containing main. I can start the application using Ctrl+Alt+X J subsequently the application can be re-run by hitting Alt+R T Enter to choose the menu option for the first item in the Run history.

But to stop the application, I have to click on the small red square in the console view. This is annoying, because it forces me to use the mouse, type Alt+R T Enter then re-focus the editor using the mouse again.

Eclipse being so configurable, there must be a keyboard shortcut to stop the application run in the current console I haven't found. There are an entry in Window > Preferences > Keys called Terminate and Terminate and Relaunch but no matter what binding I assign or what when conditions I set and no matter if I use the Debug perspective or not, they don't seem to fire.

Please help an Eclipse newbie avoiding the mouse :)

解决方案

Go to Preferences -> General -> Keys

Find "Terminate" Set your binding to whatever you want.

Then change "When" from "Debugging" to "Editing Java Source".

这篇关于是否有用于在Eclipse中停止当前控制台的键盘快捷方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆