Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij confuses Y and Z

I'm used to deleting a line with CTRL+Y and reverting a change with CTRL+Z. But on my machine, Intellij removes the line, when I press CTRL+Z instead.

I beleive it has something to do with a german layout/keyboard. Because they have y and z switched.

I set the layout to US, so it should not be a problem. When I press Y it really prints Y, but Intellij still interprets CTRL+Y as reverting last change.

like image 203
Konstantin Milyutin Avatar asked Aug 26 '14 15:08

Konstantin Milyutin


People also ask

How do I change the keyboard layout in IntelliJ?

Configure keyboard shortcuts IntelliJ IDEA includes several predefined keymaps and lets you customize frequently used shortcuts. To view the keymap configuration, open the Settings/Preferences dialog Ctrl+Alt+S and select Keymap. IntelliJ IDEA automatically suggests a predefined keymap based on your environment.

How do you undo in IntelliJ?

On the main menu, choose Edit | Undo. Press Ctrl+Z .

How do I change the keyboard language in Pycharm?

You can quickly switch between various color schemes, keyboard layouts, and look-and-feels without actually invoking the corresponding page of the Settings dialog. Press Ctrl+` or choose View | Quick Switch Scheme from the main menu.


2 Answers

It depends on the order of the keyboard layouts in your system.

Idea uses the top/first layout and does not care about the currently selected keyboard layout.

Solution: Just put the non-english layout to the top in your system settings.

Hint (depending on the question that leads to a QWERTZ keyboard):

  • [KDE, de] Systemeinstellungen -> Eingabegeräte -> Tastatur -> Belegungen -> Belegungen einrichten
  • [KDE, en] System settings -> Input devices -> Keyboard -> Layout -> Configure Layouts
like image 94
Varon Avatar answered Oct 03 '22 23:10

Varon


Check your keymap and make sure the Undo action is set to CTRL Z. Likewise search for Delete line in the keymap and make sure it is set appropriately. Here is a screen shot of the Undo action (I am on a Mac so mine uses command key).

enter image description here

like image 39
Michael Avatar answered Oct 03 '22 23:10

Michael