Dasmowenator
Dasmowenator

Reputation: 5448

Why can't I type an asterisk in Eclipse?

I just upgraded Eclipse from Juno to Kepler, and suddenly I can no longer type asterisks. I have to open up a text editor, type the asterisk there, then copy-paste it into Eclipse. I can type an asterisk in Eclipse when I am using Find/Replace, but I am unable to when I am editing a python or Java file.

Upvotes: 11

Views: 6601

Answers (5)

joe_Mclovin
joe_Mclovin

Reputation: 73

I had this same issue with Eclipse Photon, and fixed it by uninstalling the Eclipse SDK Test plugin. The fix was originally reported in this eclipse bug report.

  • Go to Help -> About Eclipse IDE -> Installation Details
  • Search for Eclipse * Test
  • Select the Eclipse SDK Tests
  • Uninstall
  • Restart Eclipse

Upvotes: 2

HourGlass
HourGlass

Reputation: 1830

As shown in the image, the shortcut key shift+8 was assigned for the import command. You have to change this assignment by specifying a new one or removing it using the unbind command button.

Do the same for all the commands, click apply and then restart Eclipse.

Eclipse shortcut settings screenshot

Upvotes: 10

Arkaaito
Arkaaito

Reputation: 7387

If you'd rather not hand-edit your workbench.xmi, you can also reassign the bindings by going to Eclipse > Preferences... > General > Keys. The two culprits in this case are "Import" and "Add to Working Set". (Scan the list of search results for the ones with ⇧8 in them, then reassign or unassign them entirely.)

Upvotes: 6

dougal2
dougal2

Reputation: 41

Close eclipse. grep your workspace for SHIFT+8; it should return matches in workbench.xmi:

workspace/.metadata/.plugins > grep -R "SHIFT+8" *
org.eclipse.e4.workbench/workbench.xmi:    <bindings xmi:id="_aLHQwCaAEeOBOe4lOFe2qQ" keySequence="SHIFT+8 W" command="_eZ-6uoZrEeKW-cnY0IziBw">
org.eclipse.e4.workbench/workbench.xmi:    <bindings xmi:id="_aLH30CaAEeOBOe4lOFe2qQ" keySequence="SHIFT+8 I" command="_eZucD4ZrEeKW-cnY0IziBw">

Edit the workbench.xmi file and remove the binding elements. Restart eclipse and it should be fixed.

Upvotes: 4

Dasmowenator
Dasmowenator

Reputation: 5448

Found a related post on Eclipse forums: http://www.eclipse.org/forums/index.php/m/1072966/?srch=asterisk#msg_1072966

Upvotes: 1

Related Questions