Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undo shortcut not working in Eclipse

The last couple of days the Ctrl+Z shortcut (Undo) scrolls down a line (a-la emacs). I tried to switch schemes back and forth, change and redefine the Undo in Default scheme, nothing seems to work. Other combinations (Alt+Ctrl+Z) work fine, other workspaces work fine with Ctrl+Z.

Any tip that will save me from redefining the workspace?

like image 702
denispyr Avatar asked Jun 04 '13 21:06

denispyr


People also ask

Does Eclipse have an Undo button?

In Eclipse, go to Window > Preferences and in the left-tree, go to General > Keys. In the 'type filter text' box, type Undo and you'll see the Undo command appear in the bottom list. You're free to change this mapping from the default Ctrl + Z to another mapping.

What is CTRL Shift R in eclipse?

File Navigation – Eclipse Shortcuts CTRL SHIFT R – Open a resource. You need not know the path and just part of the file name is enough. CTRL E – Open a file (editor) from within the list of all open files. CTRL PAGE UP or PAGE DOWN – Navigate to previous or next file from within the list of all open files.

What is the key bind for Undo?

To undo an action press Ctrl+Z. If you prefer your mouse, click Undo on the Quick Access Toolbar. You can press Undo (or CTRL+Z) repeatedly if you want to undo multiple steps.


3 Answers

The key bindings are stored in the file [workspace]\.metadata\.plugins\org.eclipse.e4.workbench\workbench.xmi.

You can search for Ctrl+Z in this file. What does it look like? You could try to edit it by hand.

Of course, it is advisable to backup the workspace before.

like image 66
Jens Piegsa Avatar answered Oct 13 '22 08:10

Jens Piegsa


From time to time, I have encountered similar issues with keyboard shortcuts. They just disappear, or doesn't seem to work as expected.

Until I figure out what the root cause is, I check key bindings.

Window > Preferences > General > Keys

Check if the key bindings are still valid. If not, then set them and it should work.

like image 28
Indu Devanath Avatar answered Oct 13 '22 10:10

Indu Devanath


Window > Preferences > General > Keys Look for Undo in the list, if the Binding is empty click on Restore Command apply and close. That should enable the shortcut.

like image 42
aa2120 Avatar answered Oct 13 '22 09:10

aa2120