73

Eclipse shortcut keys are not working suddenly in Windows. Even basic needed shortcut keys like 'ctrl + F' and 'ctrl + c' don't work. I hope that if eclipse is restarted, it would work, but I cannot restart as my applications are running in eclipse. I ensured that this is happening only in eclipse, not in other applications in my computer.

Abikrish
  • 17
  • 6
Sun
  • 3,444
  • 7
  • 53
  • 83
  • I'm having this issue. I found that bringing the help up (press F1) solves it. – Gabriel Oct 20 '16 at 14:24
  • For me going to another project (same workspace), and CTRL + D worked. Then came back, and noticed it works in the initial project too! – Tina J Dec 11 '18 at 16:26
  • I have the same issue in eclipse Version: 2018-09 (4.9.0) - solved it by closing all open sourcecode, opening a java class in a different project and going back to the project i was working in it suddenly was repaired – zeg Apr 27 '21 at 13:09

4 Answers4

61

My problem was solved when I restored defaults values of my Keys.
Go to Window -> Preferences -> General -> Keys.
Then, click Restore Defaults button at the bottom, and restart Eclipse.
I am using Eclipse Juno.

  • I had the same problem with STS(Spring Tool Suite version 3.83) The above solution fixed it. – Kumar S Jan 19 '17 at 18:37
  • I did this and restarted and they were back. – 9Breaker Apr 09 '18 at 17:16
  • If some shortcuts work, but others don't, sort the table on the Keys preference page by Binding and check for duplicates. If there aren't duplicates, It could be that your operating system or windowing environment already use them. – Martin Volek Dec 03 '18 at 09:34
  • I had a similar issue. Turned out that a shortcut of my Radeon Software overwrote the shortcut of eclipse so it wouldn't trigger in eclipse anymore. After rebinding the shortcut in my Radeon Software it also worked again in eclipse. – Daniel Janz Jun 02 '23 at 21:37
43

This is a bug in Eclipse Juno, restarting Eclipse does solve it temporarily, I'll try an dig out the bug report.

Bug report https://bugs.eclipse.org/bugs/show_bug.cgi?id=385278

Comment from bug description...

I am also facing a lot of problems regarding the keyboard shortcuts. The issue is intermittent and all of a sudden most of the key board shortcuts(specifically f3, ctrl+D, ctrl+O ) stop working unless I restart my IDE.

David
  • 19,577
  • 28
  • 108
  • 128
  • 3
    Facing same issue in Version: Kepler Service Release 2. Build id: 20140224-0627 – arun Jun 06 '14 at 03:35
  • 3
    Restarting Eclipse and even rebooting doesn't help for me; shortcuts still gone. – FractalBob Jun 14 '14 at 18:12
  • 3
    I just upgraded to 4.4 Luna and am having this same issue – Michael Goldshteyn Jul 15 '14 at 16:30
  • 1
    As a developer with multiple workspaces, I just confirmed that this is workspace dependent. My one workspace no longer has keyboard shortcuts, and my other does. Using Eclipse Luna – CrazyPenguin Sep 26 '14 at 15:04
  • I didn't have backup of the file and I had to undo some code :( – hemanth kumar Mar 04 '15 at 13:27
  • I just got this problem with Eclipse Luna. Creating a new workspace didn't help, neither restarting whole computer. I'm now in process of copying a fresh copy of Eclipse Luna. – Ciantic Apr 20 '15 at 07:39
  • I had this bug today with Eclipse Mars (Version: Mars.1 Release (4.5.1) Build id: 20150924-1200). Setting the Scheme (Window Menu -> Preferences -> General -> Keys) to "emacs", then back to "Default" and restarting eclipse fixed it for me. – bobndrew Nov 24 '15 at 09:12
  • For me as I installed the latest neon-2 this issue shows up also, fix by goto Window -> Perspective -> Custome Perspective -> shortcuts tab and toggle the checkbox for corresponding shortcuts. – chailong Jan 05 '17 at 22:54
  • Theres a quicker answer for this below instead of restarting eclipse. – Marcos Vasconcelos Jan 23 '18 at 02:26
20

Based on the link posted by david99world

Changing perspective and going back does also solve this, that does looks like is a focus problem.

Marcos Vasconcelos
  • 18,136
  • 30
  • 106
  • 167
7

My problem was solved this way: Go to Window -> Preferences -> General -> Keys

and look at the "Scheme:" control. Change it to "Default". If only that doesnt do it for you, in the field "Binding:" leave it blank.

For me it worked.

Thander
  • 69
  • 1
  • 3