0

我通常在我的 Eclipse Indigo 中使用键盘快捷键Alt++运行 java 类(使用 main() )⇧Shift。我最近开始使用 Eclipse Juno,但它似乎不起作用。这是 Eclipse Juno 中的错误吗?XJ

我的 Eclipse 内部版本号是:

Version: Juno Service Release 2
Build id: 20130225-0426

我在这里做错了什么还是这是一个 Eclipse 错误?

====================================

更新了我的 Eclipse Juno 键映射屏幕截图

我的 Eclipse Juno 键映射列表

4

4 回答 4

3

As suggested here, you need to set the 'when' binding of the shortcut to 'In Dialog and Windows'

Window > Preferences > General > Keys, then filtered for 'Shift+alt+x' then for each command I changed When field from 'In windows' to 'In dialogs and windows'. The same for 'shift+alt+d'

于 2015-01-09T01:16:07.473 回答
3

这确实是 Eclipse 4 中的一个错误。试试这个Alt + Shift + X Esc J

Alt + Shift + X当弹出窗口出现时按下,Esc然后快速跟进J。这对我有用。

我会在 eclipse 中找到这个 bug 并在此处附上链接。

于 2013-08-02T07:49:12.417 回答
1
  1. 点击“窗口”下的“透视”
  2. 展开“general”并寻找“keys”
  3. 这将列出 eclipse 命令的所有键绑定
  4. 在“命令”列下搜索“运行 Java 应用程序”。
  5. 键绑定可能设置为其他内容,而不是 Alt+Shift+X,J。
  6. 您可以将键绑定设置为 Alt+Shift+X,J 或您喜欢的任何其他组合。
于 2013-08-02T07:03:19.040 回答
0

转到您的 Java 类,单击 Ctrl+F11 将自动运行您的 JAVA 程序。

于 2014-11-26T08:02:05.490 回答