IntelliJ Idea Ctrl+Alt+Left shortcut doesn't work in Ubuntu

后端 未结 12 992
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-29 18:53

I am using IntelliJ Idea 2017.3 latest release in Ubuntu 2017.10 and shortcut Ctrl+Alt+Left/Right doesn\'t work.

Whereas from

相关标签:
12条回答
  • 2021-01-29 19:14

    Ubuntu has a shortcut Ctrl+Alt+Left/Right to navigate between workspaces. When i changed it under system settings, IDE is able to pick up the shortcut.

    0 讨论(0)
  • 2021-01-29 19:18

    The right setting is combinations of already posted answers. To sum up:

    1. Remove key bindings of Ctrl+Alt+Right/Left to GNOME enviroment

    In terminal run:

    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "[]"
    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "[]"
    

    2. Assigne the bindings to Forward / Back actions in Idea IntelliJ

    If you use Keymap setting based on GNOME keymap the defaults for Forward / Back actions are not Ctrl+Alt+Right/Left. It must be setted.

    In Idea IntelliJ menu

    File | Settings | Keymap 
    

    search for

    Main menu - Navigate - Forward
    

    click on edit shortcuts and set it to Ctrl+Alt+Right

    then search for

    Main menu - Navigate - Back
    

    click on edit shortcuts and set it to Ctrl+Alt+Left

    Works on versions: Ubuntu 18.04.3 LTS Idea IntelliJ 2019.2.3

    0 讨论(0)
  • 2021-01-29 19:19

    For Linux Mint Cinnamon, the default workspace switching keybinding that interferes with IntelliJ keybinding can be changed with the following :

    Disable:

    gsettings set org.cinnamon.desktop.keybindings.wm switch-to-workspace-left "@as []"
    gsettings set org.cinnamon.desktop.keybindings.wm switch-to-workspace-right "@as []"
    

    Reset to defaults:

    gsettings reset org.cinnamon.desktop.keybindings.wm switch-to-workspace-left
    gsettings reset org.cinnamon.desktop.keybindings.wm switch-to-workspace-right
    

    Thanks @László for the Ubuntu Gnome hint.

    0 讨论(0)
  • 2021-01-29 19:22

    Ctrl + Windows Key + Alt + Left/Right worked on my Linux Fedora 22.

    0 讨论(0)
  • 2021-01-29 19:23

    Ubuntu binds this key combination to Switch Workspace. Starting from Ubuntu 18.04, you need to use the command line to change the shortcut (source). To remove the offending shortcuts completely, allowing IntelliJ to use them, these commands worked for me:

    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "[]"
    gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "[]"
    

    If you ever want to restore the shortcuts, use:

    gsettings reset org.gnome.desktop.wm.keybindings switch-to-workspace-left
    gsettings reset org.gnome.desktop.wm.keybindings switch-to-workspace-right
    
    0 讨论(0)
  • 2021-01-29 19:25

    My Gnome was configured to CTRL+ALT+left or right and I don't why but it moved to CTRL+ALT+Up or down. Workspaces were aligned horizontally and they changed to be vertical. I don't what I did to get this! Maybe the same thing happened to you...

    I am fine with that, it changes a lit bit my desktop, changes are good some times...

    I advice you to install the extension Workspace to dock which is very cool ;)

    0 讨论(0)
提交回复
热议问题