Eclipse Organize Imports Shortcut(Ctrl + Shift + O)不起作用 [英] Eclipse Organize Imports Shortcut (Ctrl+Shift+O) is not working

查看:1020
本文介绍了Eclipse Organize Imports Shortcut(Ctrl + Shift + O)不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我按 Ctrl + Shift + O 时,Eclipse用于导入缺少的包。

Eclipse used to import missing packages when I press Ctrl+Shift+O.

快捷键在Java文件中使用时已停止工作,但同样的快捷方式在Python文件中有效(导入丢失的包)。

The shortcut key has stopped working when used in Java files but the same shortcut is working in Python files (importing missing packages).

有关如何使用的任何想法解决问题。

Any thoughts on how to fix the issue.

以下是几个快照供您参考。

Below are couple of snapshots for your reference.

推荐答案

到解决此问题:

转到偏好设置 - > 常规 - > 按键
点击过滤器... 并取消选择过滤未分类的命令然后确定

Go to Preferences -> General -> Keys Click on Filters... and de-select Filter uncategorized commands then Ok.

然后查找命令转到文件中的符号并选择它。
然后点击取消绑定然后申请并关闭

Then look for the command Go To Symbol in File and select it. Then click on Unbind and then Apply and Close

Ctrl + Shift + O 。现在应该可以了。

Ctrl+Shift+O. should now work.

编辑:

同时取消绑定任何其他冲突的命令,只留下一个命令 Ctrl + Shift + O 并将设置为编辑Java源

Also unbind any other conflicting commands and leave only one command for Ctrl+Shift+O and set the When to Editing Java Source.

这篇关于Eclipse Organize Imports Shortcut(Ctrl + Shift + O)不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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