Issue
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.
Solution
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
.
Answered By - codemonkey