Eclipse used to import missing packages when I press Ctrl + Shift + O .
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.
The Java Organize Import command is overwritten by another Ctrl + Shift + O command : in Window > Preferences: General > Keys the Java Organize Import command (where When is In Windows ) is bound to Ctrl + Shift + O , but in the main and right-click menu Source > Organize Imports the command is displayed without the shortcut.
There are two solutions for this problem:
Change or remove the shortcut of the command that overwrites the Java Organize Import command:
Restricts the scope of the shortcut of Java Organize Import to the Java editor:
See also: Spring IDE issue #160: organize imports is not working
To fix this issue:
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 . should now work.
EDIT:
Also unbind any other conflicting commands and leave only one command for Ctrl + Shift + O and set the When
to Editing Java Source
.
Please keep in mind that if you are using an AMD GPU, your Radeon Driver could block Ctrl + Shift + O which is used to toggle an ingame-overlay. It can be changed to other keys as follows: Games → global settings → performance monitoring
Window -> Preferences -> General -> Keys
Click on Binding to sort by Binding then scroll and find Ctrl + Shift + O
If several Organized imports are present edit one bind and choose WHEN: EDITING JAVA SOURCE.
Remove( UNBIND COMMAND) for other existing bindings.
Restart Eclipse
Above shortcut resulted in GPU details being popped up on my screen. SO it was bound to some other app which was overriding it. What worked for me is -> check .
You need to go to Gaming > Global Settings > Performance Monitoring > Toggle Performance Logging Hotkey
You will see this is bound to Ctrl + Shift + O (so the shortcut is used - just buried).
To remove the shortcut (not an obvious process at all!) you need to click the Toggle Performance Logging Hotkey button, it will then ask to enter your hotkey, you then press delete - that is Del (not backspace, not esc or anything else - the Del key).
i did all but not worked so i checked the AMD forum ( https://community.amd.com/thread/227221 ) and found out my solution which is; "Now I find that all I need to do is to go to Radeon Settings -> Preferences and uncheck the Show Overlay box."
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.