[ACCEPTED]-Managing keyboard shortcut conflicts between IDE and OS (Ubuntu)-keyboard-shortcuts
I use Ubuntu as well and I disabled the 11 native (Ubuntu) command Ctrl + Alt + L because I 10 prefer IntelliJ's format code than this 9 native Ubuntu command. However, in the 2nd 8 case I prefered Ubuntu's shortcut so I didn't 7 change anything.
So basically, you can choose 6 which option you need more and then act 5 accordingly.
Of course, until IDEA becomes 4 Ubuntu friendly.
In the end, Ubuntu will 3 always prefer its shortcuts and so far I 2 haven't found any tool that can disable 1 native shortcuts on request.
I changed ubuntu shortcuts to
similar to 1 original. Works fine for me.
In Ubuntu, the way to disable the ctrl+alt+left keybinding 5 is to open System Settings -> Keyboard -> Shorcuts(tab) -> Navigation 4 . Scroll to "Switch to workspace left", click 3 on it and hit Backspace. It is silly that 2 this is even enabled for stock Ubuntu 14.04 1 where there is only one desktop by default.
There is a feature request to provide Ubuntu friendly keymap.
What 5 to remap, IDEA or Linux keys? Decide yourself 4 depending on what you are using more often. I 3 guess you reformat code more often than 2 lock screen? So remap Linux and leave IDEA 1 default keyboard shortcut.
You can just use the
super (aka Windows Key) in 5 combination with your
intellijidea shortcut, in order 4 to leave the default shortcuts for Ubuntu.
So, you 3 can just
Ctrl + Alt + WinKey + L to format the code and
Ctrl 2 + Alt + WinKey + Left for navigating backward
Hope this 1 helps
This works for me in Ubuntu Studio 14.04 1 (XFCE):
- Open Windows Manager:
- Go to Keyboard tab
- Scroll down to conflicting Action
- Hit Clear button or change action to different shortcut
In order to disable XUbuntu's (xfce) keymap 2 for
Alt + F8 and
Ctrl + Alt + Left/Right Arrow
Settings -> Window Manager -> tab "Keyboard".
Here I was 1 able to clear these mappings.
From the link to feature request provided 16 by CrazyCoder:
Actually, there are several 15 bundled schemes: "Default for GNOME", "Default 14 for KDE" created exactly for that purpose. I 13 have not checked now particular shortcuts 12 like Ctrl+Alt+L, but these schemes were 11 created to avoid conflicts with GNOME and 10 KDE respectively.
"Default for Gnome" did 9 the trick for me (I'm on ArchLinux, Gnome3, AndroidStudio/InteliJ), it 8 remapped Navigate/Back to Shift+Alt+Left 7 (was Ctrl+Alt+Left from "Default for XWin" and 6 it didn't work).
But now it switches may 5 keyboard layout as well (Shift+Alt), another 4 problem )) Probably I'll remap keypad switcher 3 to something else, it is still simpler then 2 reassigning all the conflicting keys in 1 IDE/OS.
In 'Settings' section 'Keymap' you can choose 3 the keymaps template from XWin, Gnome, Visual 2 Studio, Eclipse, etc... This solve any problem 1 in Ubuntu by choosing Gnome.
In order to have working intellij hotkeys 6 I've disabled next configuration in settings:
It 5 helped me to have working combinations with 4 F1-F12 buttons. But I still had to change 3 some hotkeys.
Ctrl + Alt + Left/Right -> Shift 2 + Alt + Left/Right
Ctrl + Alt + F7 -> Alt 1 + F7
Link to my hotkeys for ubuntu.
More Related questions