Managing keyboard shortcut conflicts between IDE and OS (Ubuntu)












82















I'm using IntelliJ IDEA, but I think this applies to any IDE.



In IDEA, some very useful keyboard shortcuts conflict with Ubuntu keyboard shortcuts. Some examples:





  • Ctrl+Alt+L : formats the source code (mapped to "Lock Screen" in Ubuntu)


  • Ctrl+Alt+Left : navigates backward (mapped to "switch to workspace on the left of the current workspace" in Ubuntu)

  • ...


I've been using Ubuntu for a long time, and I'm used to these shortcuts. I use them all the time to switch between workspaces, lock my session... At the same time, I know how useful the IntelliJ shortcuts can be, and I want to avoid using the mouse as much as possible.



Currently, my workaround for "format source code" is Alt+D (opens the "Code" menu), followed by "R" ("Reformat Code"). It works okay, since I don't format code that often, but it could be better. There is no real alternative for Ctrl+Alt+Left, though.



How do you manage these conflicts in your IDE?



Do you simply remap all the conflicting IDE keyboard shortcuts to something else (and then get lost when you are pair programming with a colleague with different shortcuts...)?



Do you remap the Linux keyboard shortcuts (even though you are "used" to them)?



Is there a way to make keyboard shortcuts "contextual"? By this, I mean: hit a key to go into "IDEA mode" when coding (all conflicting Ubuntu shortcuts are temporarily deactivated), hit the key again to go back to "Standard mode" (Ubuntu shortcuts are reactived).



Do you have any other ideas / tips on how to manage this problem?










share|improve this question





























    82















    I'm using IntelliJ IDEA, but I think this applies to any IDE.



    In IDEA, some very useful keyboard shortcuts conflict with Ubuntu keyboard shortcuts. Some examples:





    • Ctrl+Alt+L : formats the source code (mapped to "Lock Screen" in Ubuntu)


    • Ctrl+Alt+Left : navigates backward (mapped to "switch to workspace on the left of the current workspace" in Ubuntu)

    • ...


    I've been using Ubuntu for a long time, and I'm used to these shortcuts. I use them all the time to switch between workspaces, lock my session... At the same time, I know how useful the IntelliJ shortcuts can be, and I want to avoid using the mouse as much as possible.



    Currently, my workaround for "format source code" is Alt+D (opens the "Code" menu), followed by "R" ("Reformat Code"). It works okay, since I don't format code that often, but it could be better. There is no real alternative for Ctrl+Alt+Left, though.



    How do you manage these conflicts in your IDE?



    Do you simply remap all the conflicting IDE keyboard shortcuts to something else (and then get lost when you are pair programming with a colleague with different shortcuts...)?



    Do you remap the Linux keyboard shortcuts (even though you are "used" to them)?



    Is there a way to make keyboard shortcuts "contextual"? By this, I mean: hit a key to go into "IDEA mode" when coding (all conflicting Ubuntu shortcuts are temporarily deactivated), hit the key again to go back to "Standard mode" (Ubuntu shortcuts are reactived).



    Do you have any other ideas / tips on how to manage this problem?










    share|improve this question



























      82












      82








      82


      27






      I'm using IntelliJ IDEA, but I think this applies to any IDE.



      In IDEA, some very useful keyboard shortcuts conflict with Ubuntu keyboard shortcuts. Some examples:





      • Ctrl+Alt+L : formats the source code (mapped to "Lock Screen" in Ubuntu)


      • Ctrl+Alt+Left : navigates backward (mapped to "switch to workspace on the left of the current workspace" in Ubuntu)

      • ...


      I've been using Ubuntu for a long time, and I'm used to these shortcuts. I use them all the time to switch between workspaces, lock my session... At the same time, I know how useful the IntelliJ shortcuts can be, and I want to avoid using the mouse as much as possible.



      Currently, my workaround for "format source code" is Alt+D (opens the "Code" menu), followed by "R" ("Reformat Code"). It works okay, since I don't format code that often, but it could be better. There is no real alternative for Ctrl+Alt+Left, though.



      How do you manage these conflicts in your IDE?



      Do you simply remap all the conflicting IDE keyboard shortcuts to something else (and then get lost when you are pair programming with a colleague with different shortcuts...)?



      Do you remap the Linux keyboard shortcuts (even though you are "used" to them)?



      Is there a way to make keyboard shortcuts "contextual"? By this, I mean: hit a key to go into "IDEA mode" when coding (all conflicting Ubuntu shortcuts are temporarily deactivated), hit the key again to go back to "Standard mode" (Ubuntu shortcuts are reactived).



      Do you have any other ideas / tips on how to manage this problem?










      share|improve this question
















      I'm using IntelliJ IDEA, but I think this applies to any IDE.



      In IDEA, some very useful keyboard shortcuts conflict with Ubuntu keyboard shortcuts. Some examples:





      • Ctrl+Alt+L : formats the source code (mapped to "Lock Screen" in Ubuntu)


      • Ctrl+Alt+Left : navigates backward (mapped to "switch to workspace on the left of the current workspace" in Ubuntu)

      • ...


      I've been using Ubuntu for a long time, and I'm used to these shortcuts. I use them all the time to switch between workspaces, lock my session... At the same time, I know how useful the IntelliJ shortcuts can be, and I want to avoid using the mouse as much as possible.



      Currently, my workaround for "format source code" is Alt+D (opens the "Code" menu), followed by "R" ("Reformat Code"). It works okay, since I don't format code that often, but it could be better. There is no real alternative for Ctrl+Alt+Left, though.



      How do you manage these conflicts in your IDE?



      Do you simply remap all the conflicting IDE keyboard shortcuts to something else (and then get lost when you are pair programming with a colleague with different shortcuts...)?



      Do you remap the Linux keyboard shortcuts (even though you are "used" to them)?



      Is there a way to make keyboard shortcuts "contextual"? By this, I mean: hit a key to go into "IDEA mode" when coding (all conflicting Ubuntu shortcuts are temporarily deactivated), hit the key again to go back to "Standard mode" (Ubuntu shortcuts are reactived).



      Do you have any other ideas / tips on how to manage this problem?







      ubuntu intellij-idea ide keyboard-shortcuts






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 11 '17 at 9:06









      Vadim Kotov

      4,63663447




      4,63663447










      asked Apr 4 '11 at 9:56









      Etienne NeveuEtienne Neveu

      11k73156




      11k73156
























          9 Answers
          9






          active

          oldest

          votes


















          22














          I use Ubuntu as well and I disabled the native (Ubuntu) command Ctrl + Alt + L because I prefer IntelliJ's format code than this native Ubuntu command. However, in the 2nd case I prefered Ubuntu's shortcut so I didn't change anything.



          So basically, you can choose which option you need more and then act accordingly.



          Of course, until IDEA becomes Ubuntu friendly.



          In the end, Ubuntu will always prefer its shortcuts and so far I haven't found any tool that can disable native shortcuts on request.






          share|improve this answer





















          • 1





            CrazyCoder / askmo : I upvoted both of you. Your answers are pragmatic. I was secretly hoping there was a trick to manage keymaps without remapping everything, but I guess I'll just have to accept it. I'm still going to wait a few days before accepting your answers, in case somebody knows a trick to avoid doing that.

            – Etienne Neveu
            Apr 5 '11 at 8:47











          • Unfortunatelly, there is not a better solution than the one I told you. Until IDEA makes changes, you cannot do much but change what you can - and at the moment you can only change Ubuntu's shortcuts. PS. I'd suggest you dig the net to find Ubuntu utility that can enable/disable all shortcuts. If you find such tool, please post it here, because I was unable to find it myself. Thanks!

            – sandalone
            Apr 5 '11 at 17:10













          • I might have found something, going to try it tonight: askubuntu.com/questions/17315/… . I can create a bash script that enables / disables a list of shortcuts using the gconftool-2 command, and trigger it using a specific keyboard shortcut :)

            – Etienne Neveu
            Apr 7 '11 at 11:44













          • You don't have to remap anymore. Settings -> Keyboard -> Shortcuts will let you modify most inherent keyboard shortcuts in Ubuntu 16.04. Additionally, compizconfig-settings-manager will allow you to modify any other hotkeys not covered in the Ubuntu native settings to your liking.

            – anon58192932
            Aug 29 '17 at 18:25





















          23














          I changed ubuntu shortcuts to





          • ctrl+win+L


          • ctrl+win+Left


          similar to original. Works fine for me.






          share|improve this answer



















          • 4





            how did you change it?

            – Jas
            Jan 13 '14 at 16:09






          • 1





            I changed the Ubuntu "Lock Screen" shortcut to simply be Win-L. @Jas, if you are having trouble remapping shortcuts with the "Win" (aka "Super") key, perhaps my answer to another keymapping question will help: askubuntu.com/a/349614/54675

            – Lambart
            Jul 3 '14 at 16:57



















          20














          In Ubuntu, the way to disable the ctrl+alt+left keybinding is to open System Settings -> Keyboard -> Shorcuts(tab) -> Navigation . Scroll to "Switch to workspace left", click on it and hit Backspace. It is silly that this is even enabled for stock Ubuntu 14.04 where there is only one desktop by default.






          share|improve this answer
























          • For some reason, these settings reset themselves recently (maybe after some package updates) on my desktop. I don't know why.

            – postfuturist
            Jul 18 '14 at 22:05



















          12














          There is a feature request to provide Ubuntu friendly keymap.



          What to remap, IDEA or Linux keys? Decide yourself depending on what you are using more often. I guess you reformat code more often than lock screen? So remap Linux and leave IDEA default keyboard shortcut.






          share|improve this answer
























          • Thanks for the pragmatic answer (see my comment on askmo's answer) and for linking to the feature request, which I wasn't aware of

            – Etienne Neveu
            Apr 5 '11 at 8:49





















          5














          You can just use the super (aka Windows Key) in combination with your intellijidea shortcut, in order to leave the default shortcuts for Ubuntu.



          So, you can just



          Ctrl + Alt + WinKey + L
          to format the code and



          Ctrl + Alt + WinKey + Left
          for navigating backward



          Hope this helps






          share|improve this answer

































            3














            This works for me in Ubuntu Studio 14.04 (XFCE):




            • Open Windows Manager: xfwm4-settings

            • Go to Keyboard tab

            • Scroll down to conflicting Action

            • Hit Clear button or change action to different shortcut






            share|improve this answer































              3














              In order to disable XUbuntu's (xfce) keymap for
              Alt + F8 and
              Ctrl + Alt + Left/Right Arrow
              I used Settings -> Window Manager -> tab "Keyboard".



              Here I was able to clear these mappings.






              share|improve this answer































                2














                From the link to feature request provided by CrazyCoder:




                Actually, there are several bundled schemes: "Default for GNOME", "Default for KDE" created exactly for that purpose.
                I have not checked now particular shortcuts like Ctrl+Alt+L, but these schemes were created to avoid conflicts with GNOME and KDE respectively.




                "Default for Gnome" did the trick for me (I'm on ArchLinux, Gnome3, AndroidStudio/InteliJ), it remapped Navigate/Back to Shift+Alt+Left (was Ctrl+Alt+Left from "Default for XWin" and it didn't work).



                But now it switches may keyboard layout as well (Shift+Alt), another problem )) Probably I'll remap keypad switcher to something else, it is still simpler then reassigning all the conflicting keys in IDE/OS.






                share|improve this answer































                  2














                  In 'Settings' section 'Keymap' you can choose the keymaps template from XWin, Gnome, Visual Studio, Eclipse, etc... This solve any problem in Ubuntu by choosing Gnome.






                  share|improve this answer
























                  • Down voted because because ubuntu short keys still conflicts with gnome. Refer to jetbrains.com/idea/help/reformatting-source-code.html

                    – thomas.han
                    Feb 9 '16 at 23:58













                  Your Answer






                  StackExchange.ifUsing("editor", function () {
                  StackExchange.using("externalEditor", function () {
                  StackExchange.using("snippets", function () {
                  StackExchange.snippets.init();
                  });
                  });
                  }, "code-snippets");

                  StackExchange.ready(function() {
                  var channelOptions = {
                  tags: "".split(" "),
                  id: "1"
                  };
                  initTagRenderer("".split(" "), "".split(" "), channelOptions);

                  StackExchange.using("externalEditor", function() {
                  // Have to fire editor after snippets, if snippets enabled
                  if (StackExchange.settings.snippets.snippetsEnabled) {
                  StackExchange.using("snippets", function() {
                  createEditor();
                  });
                  }
                  else {
                  createEditor();
                  }
                  });

                  function createEditor() {
                  StackExchange.prepareEditor({
                  heartbeatType: 'answer',
                  autoActivateHeartbeat: false,
                  convertImagesToLinks: true,
                  noModals: true,
                  showLowRepImageUploadWarning: true,
                  reputationToPostImages: 10,
                  bindNavPrevention: true,
                  postfix: "",
                  imageUploader: {
                  brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                  contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                  allowUrls: true
                  },
                  onDemand: true,
                  discardSelector: ".discard-answer"
                  ,immediatelyShowMarkdownHelp:true
                  });


                  }
                  });














                  draft saved

                  draft discarded


















                  StackExchange.ready(
                  function () {
                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f5536920%2fmanaging-keyboard-shortcut-conflicts-between-ide-and-os-ubuntu%23new-answer', 'question_page');
                  }
                  );

                  Post as a guest















                  Required, but never shown

























                  9 Answers
                  9






                  active

                  oldest

                  votes








                  9 Answers
                  9






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes









                  22














                  I use Ubuntu as well and I disabled the native (Ubuntu) command Ctrl + Alt + L because I prefer IntelliJ's format code than this native Ubuntu command. However, in the 2nd case I prefered Ubuntu's shortcut so I didn't change anything.



                  So basically, you can choose which option you need more and then act accordingly.



                  Of course, until IDEA becomes Ubuntu friendly.



                  In the end, Ubuntu will always prefer its shortcuts and so far I haven't found any tool that can disable native shortcuts on request.






                  share|improve this answer





















                  • 1





                    CrazyCoder / askmo : I upvoted both of you. Your answers are pragmatic. I was secretly hoping there was a trick to manage keymaps without remapping everything, but I guess I'll just have to accept it. I'm still going to wait a few days before accepting your answers, in case somebody knows a trick to avoid doing that.

                    – Etienne Neveu
                    Apr 5 '11 at 8:47











                  • Unfortunatelly, there is not a better solution than the one I told you. Until IDEA makes changes, you cannot do much but change what you can - and at the moment you can only change Ubuntu's shortcuts. PS. I'd suggest you dig the net to find Ubuntu utility that can enable/disable all shortcuts. If you find such tool, please post it here, because I was unable to find it myself. Thanks!

                    – sandalone
                    Apr 5 '11 at 17:10













                  • I might have found something, going to try it tonight: askubuntu.com/questions/17315/… . I can create a bash script that enables / disables a list of shortcuts using the gconftool-2 command, and trigger it using a specific keyboard shortcut :)

                    – Etienne Neveu
                    Apr 7 '11 at 11:44













                  • You don't have to remap anymore. Settings -> Keyboard -> Shortcuts will let you modify most inherent keyboard shortcuts in Ubuntu 16.04. Additionally, compizconfig-settings-manager will allow you to modify any other hotkeys not covered in the Ubuntu native settings to your liking.

                    – anon58192932
                    Aug 29 '17 at 18:25


















                  22














                  I use Ubuntu as well and I disabled the native (Ubuntu) command Ctrl + Alt + L because I prefer IntelliJ's format code than this native Ubuntu command. However, in the 2nd case I prefered Ubuntu's shortcut so I didn't change anything.



                  So basically, you can choose which option you need more and then act accordingly.



                  Of course, until IDEA becomes Ubuntu friendly.



                  In the end, Ubuntu will always prefer its shortcuts and so far I haven't found any tool that can disable native shortcuts on request.






                  share|improve this answer





















                  • 1





                    CrazyCoder / askmo : I upvoted both of you. Your answers are pragmatic. I was secretly hoping there was a trick to manage keymaps without remapping everything, but I guess I'll just have to accept it. I'm still going to wait a few days before accepting your answers, in case somebody knows a trick to avoid doing that.

                    – Etienne Neveu
                    Apr 5 '11 at 8:47











                  • Unfortunatelly, there is not a better solution than the one I told you. Until IDEA makes changes, you cannot do much but change what you can - and at the moment you can only change Ubuntu's shortcuts. PS. I'd suggest you dig the net to find Ubuntu utility that can enable/disable all shortcuts. If you find such tool, please post it here, because I was unable to find it myself. Thanks!

                    – sandalone
                    Apr 5 '11 at 17:10













                  • I might have found something, going to try it tonight: askubuntu.com/questions/17315/… . I can create a bash script that enables / disables a list of shortcuts using the gconftool-2 command, and trigger it using a specific keyboard shortcut :)

                    – Etienne Neveu
                    Apr 7 '11 at 11:44













                  • You don't have to remap anymore. Settings -> Keyboard -> Shortcuts will let you modify most inherent keyboard shortcuts in Ubuntu 16.04. Additionally, compizconfig-settings-manager will allow you to modify any other hotkeys not covered in the Ubuntu native settings to your liking.

                    – anon58192932
                    Aug 29 '17 at 18:25
















                  22












                  22








                  22







                  I use Ubuntu as well and I disabled the native (Ubuntu) command Ctrl + Alt + L because I prefer IntelliJ's format code than this native Ubuntu command. However, in the 2nd case I prefered Ubuntu's shortcut so I didn't change anything.



                  So basically, you can choose which option you need more and then act accordingly.



                  Of course, until IDEA becomes Ubuntu friendly.



                  In the end, Ubuntu will always prefer its shortcuts and so far I haven't found any tool that can disable native shortcuts on request.






                  share|improve this answer















                  I use Ubuntu as well and I disabled the native (Ubuntu) command Ctrl + Alt + L because I prefer IntelliJ's format code than this native Ubuntu command. However, in the 2nd case I prefered Ubuntu's shortcut so I didn't change anything.



                  So basically, you can choose which option you need more and then act accordingly.



                  Of course, until IDEA becomes Ubuntu friendly.



                  In the end, Ubuntu will always prefer its shortcuts and so far I haven't found any tool that can disable native shortcuts on request.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Sep 16 '11 at 9:10









                  Jasper

                  2,00932643




                  2,00932643










                  answered Apr 4 '11 at 13:01









                  sandalonesandalone

                  23.1k54183295




                  23.1k54183295








                  • 1





                    CrazyCoder / askmo : I upvoted both of you. Your answers are pragmatic. I was secretly hoping there was a trick to manage keymaps without remapping everything, but I guess I'll just have to accept it. I'm still going to wait a few days before accepting your answers, in case somebody knows a trick to avoid doing that.

                    – Etienne Neveu
                    Apr 5 '11 at 8:47











                  • Unfortunatelly, there is not a better solution than the one I told you. Until IDEA makes changes, you cannot do much but change what you can - and at the moment you can only change Ubuntu's shortcuts. PS. I'd suggest you dig the net to find Ubuntu utility that can enable/disable all shortcuts. If you find such tool, please post it here, because I was unable to find it myself. Thanks!

                    – sandalone
                    Apr 5 '11 at 17:10













                  • I might have found something, going to try it tonight: askubuntu.com/questions/17315/… . I can create a bash script that enables / disables a list of shortcuts using the gconftool-2 command, and trigger it using a specific keyboard shortcut :)

                    – Etienne Neveu
                    Apr 7 '11 at 11:44













                  • You don't have to remap anymore. Settings -> Keyboard -> Shortcuts will let you modify most inherent keyboard shortcuts in Ubuntu 16.04. Additionally, compizconfig-settings-manager will allow you to modify any other hotkeys not covered in the Ubuntu native settings to your liking.

                    – anon58192932
                    Aug 29 '17 at 18:25
















                  • 1





                    CrazyCoder / askmo : I upvoted both of you. Your answers are pragmatic. I was secretly hoping there was a trick to manage keymaps without remapping everything, but I guess I'll just have to accept it. I'm still going to wait a few days before accepting your answers, in case somebody knows a trick to avoid doing that.

                    – Etienne Neveu
                    Apr 5 '11 at 8:47











                  • Unfortunatelly, there is not a better solution than the one I told you. Until IDEA makes changes, you cannot do much but change what you can - and at the moment you can only change Ubuntu's shortcuts. PS. I'd suggest you dig the net to find Ubuntu utility that can enable/disable all shortcuts. If you find such tool, please post it here, because I was unable to find it myself. Thanks!

                    – sandalone
                    Apr 5 '11 at 17:10













                  • I might have found something, going to try it tonight: askubuntu.com/questions/17315/… . I can create a bash script that enables / disables a list of shortcuts using the gconftool-2 command, and trigger it using a specific keyboard shortcut :)

                    – Etienne Neveu
                    Apr 7 '11 at 11:44













                  • You don't have to remap anymore. Settings -> Keyboard -> Shortcuts will let you modify most inherent keyboard shortcuts in Ubuntu 16.04. Additionally, compizconfig-settings-manager will allow you to modify any other hotkeys not covered in the Ubuntu native settings to your liking.

                    – anon58192932
                    Aug 29 '17 at 18:25










                  1




                  1





                  CrazyCoder / askmo : I upvoted both of you. Your answers are pragmatic. I was secretly hoping there was a trick to manage keymaps without remapping everything, but I guess I'll just have to accept it. I'm still going to wait a few days before accepting your answers, in case somebody knows a trick to avoid doing that.

                  – Etienne Neveu
                  Apr 5 '11 at 8:47





                  CrazyCoder / askmo : I upvoted both of you. Your answers are pragmatic. I was secretly hoping there was a trick to manage keymaps without remapping everything, but I guess I'll just have to accept it. I'm still going to wait a few days before accepting your answers, in case somebody knows a trick to avoid doing that.

                  – Etienne Neveu
                  Apr 5 '11 at 8:47













                  Unfortunatelly, there is not a better solution than the one I told you. Until IDEA makes changes, you cannot do much but change what you can - and at the moment you can only change Ubuntu's shortcuts. PS. I'd suggest you dig the net to find Ubuntu utility that can enable/disable all shortcuts. If you find such tool, please post it here, because I was unable to find it myself. Thanks!

                  – sandalone
                  Apr 5 '11 at 17:10







                  Unfortunatelly, there is not a better solution than the one I told you. Until IDEA makes changes, you cannot do much but change what you can - and at the moment you can only change Ubuntu's shortcuts. PS. I'd suggest you dig the net to find Ubuntu utility that can enable/disable all shortcuts. If you find such tool, please post it here, because I was unable to find it myself. Thanks!

                  – sandalone
                  Apr 5 '11 at 17:10















                  I might have found something, going to try it tonight: askubuntu.com/questions/17315/… . I can create a bash script that enables / disables a list of shortcuts using the gconftool-2 command, and trigger it using a specific keyboard shortcut :)

                  – Etienne Neveu
                  Apr 7 '11 at 11:44







                  I might have found something, going to try it tonight: askubuntu.com/questions/17315/… . I can create a bash script that enables / disables a list of shortcuts using the gconftool-2 command, and trigger it using a specific keyboard shortcut :)

                  – Etienne Neveu
                  Apr 7 '11 at 11:44















                  You don't have to remap anymore. Settings -> Keyboard -> Shortcuts will let you modify most inherent keyboard shortcuts in Ubuntu 16.04. Additionally, compizconfig-settings-manager will allow you to modify any other hotkeys not covered in the Ubuntu native settings to your liking.

                  – anon58192932
                  Aug 29 '17 at 18:25







                  You don't have to remap anymore. Settings -> Keyboard -> Shortcuts will let you modify most inherent keyboard shortcuts in Ubuntu 16.04. Additionally, compizconfig-settings-manager will allow you to modify any other hotkeys not covered in the Ubuntu native settings to your liking.

                  – anon58192932
                  Aug 29 '17 at 18:25















                  23














                  I changed ubuntu shortcuts to





                  • ctrl+win+L


                  • ctrl+win+Left


                  similar to original. Works fine for me.






                  share|improve this answer



















                  • 4





                    how did you change it?

                    – Jas
                    Jan 13 '14 at 16:09






                  • 1





                    I changed the Ubuntu "Lock Screen" shortcut to simply be Win-L. @Jas, if you are having trouble remapping shortcuts with the "Win" (aka "Super") key, perhaps my answer to another keymapping question will help: askubuntu.com/a/349614/54675

                    – Lambart
                    Jul 3 '14 at 16:57
















                  23














                  I changed ubuntu shortcuts to





                  • ctrl+win+L


                  • ctrl+win+Left


                  similar to original. Works fine for me.






                  share|improve this answer



















                  • 4





                    how did you change it?

                    – Jas
                    Jan 13 '14 at 16:09






                  • 1





                    I changed the Ubuntu "Lock Screen" shortcut to simply be Win-L. @Jas, if you are having trouble remapping shortcuts with the "Win" (aka "Super") key, perhaps my answer to another keymapping question will help: askubuntu.com/a/349614/54675

                    – Lambart
                    Jul 3 '14 at 16:57














                  23












                  23








                  23







                  I changed ubuntu shortcuts to





                  • ctrl+win+L


                  • ctrl+win+Left


                  similar to original. Works fine for me.






                  share|improve this answer













                  I changed ubuntu shortcuts to





                  • ctrl+win+L


                  • ctrl+win+Left


                  similar to original. Works fine for me.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 26 '12 at 22:45









                  fantomfantom

                  24826




                  24826








                  • 4





                    how did you change it?

                    – Jas
                    Jan 13 '14 at 16:09






                  • 1





                    I changed the Ubuntu "Lock Screen" shortcut to simply be Win-L. @Jas, if you are having trouble remapping shortcuts with the "Win" (aka "Super") key, perhaps my answer to another keymapping question will help: askubuntu.com/a/349614/54675

                    – Lambart
                    Jul 3 '14 at 16:57














                  • 4





                    how did you change it?

                    – Jas
                    Jan 13 '14 at 16:09






                  • 1





                    I changed the Ubuntu "Lock Screen" shortcut to simply be Win-L. @Jas, if you are having trouble remapping shortcuts with the "Win" (aka "Super") key, perhaps my answer to another keymapping question will help: askubuntu.com/a/349614/54675

                    – Lambart
                    Jul 3 '14 at 16:57








                  4




                  4





                  how did you change it?

                  – Jas
                  Jan 13 '14 at 16:09





                  how did you change it?

                  – Jas
                  Jan 13 '14 at 16:09




                  1




                  1





                  I changed the Ubuntu "Lock Screen" shortcut to simply be Win-L. @Jas, if you are having trouble remapping shortcuts with the "Win" (aka "Super") key, perhaps my answer to another keymapping question will help: askubuntu.com/a/349614/54675

                  – Lambart
                  Jul 3 '14 at 16:57





                  I changed the Ubuntu "Lock Screen" shortcut to simply be Win-L. @Jas, if you are having trouble remapping shortcuts with the "Win" (aka "Super") key, perhaps my answer to another keymapping question will help: askubuntu.com/a/349614/54675

                  – Lambart
                  Jul 3 '14 at 16:57











                  20














                  In Ubuntu, the way to disable the ctrl+alt+left keybinding is to open System Settings -> Keyboard -> Shorcuts(tab) -> Navigation . Scroll to "Switch to workspace left", click on it and hit Backspace. It is silly that this is even enabled for stock Ubuntu 14.04 where there is only one desktop by default.






                  share|improve this answer
























                  • For some reason, these settings reset themselves recently (maybe after some package updates) on my desktop. I don't know why.

                    – postfuturist
                    Jul 18 '14 at 22:05
















                  20














                  In Ubuntu, the way to disable the ctrl+alt+left keybinding is to open System Settings -> Keyboard -> Shorcuts(tab) -> Navigation . Scroll to "Switch to workspace left", click on it and hit Backspace. It is silly that this is even enabled for stock Ubuntu 14.04 where there is only one desktop by default.






                  share|improve this answer
























                  • For some reason, these settings reset themselves recently (maybe after some package updates) on my desktop. I don't know why.

                    – postfuturist
                    Jul 18 '14 at 22:05














                  20












                  20








                  20







                  In Ubuntu, the way to disable the ctrl+alt+left keybinding is to open System Settings -> Keyboard -> Shorcuts(tab) -> Navigation . Scroll to "Switch to workspace left", click on it and hit Backspace. It is silly that this is even enabled for stock Ubuntu 14.04 where there is only one desktop by default.






                  share|improve this answer













                  In Ubuntu, the way to disable the ctrl+alt+left keybinding is to open System Settings -> Keyboard -> Shorcuts(tab) -> Navigation . Scroll to "Switch to workspace left", click on it and hit Backspace. It is silly that this is even enabled for stock Ubuntu 14.04 where there is only one desktop by default.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jun 12 '14 at 17:09









                  postfuturistpostfuturist

                  17k104881




                  17k104881













                  • For some reason, these settings reset themselves recently (maybe after some package updates) on my desktop. I don't know why.

                    – postfuturist
                    Jul 18 '14 at 22:05



















                  • For some reason, these settings reset themselves recently (maybe after some package updates) on my desktop. I don't know why.

                    – postfuturist
                    Jul 18 '14 at 22:05

















                  For some reason, these settings reset themselves recently (maybe after some package updates) on my desktop. I don't know why.

                  – postfuturist
                  Jul 18 '14 at 22:05





                  For some reason, these settings reset themselves recently (maybe after some package updates) on my desktop. I don't know why.

                  – postfuturist
                  Jul 18 '14 at 22:05











                  12














                  There is a feature request to provide Ubuntu friendly keymap.



                  What to remap, IDEA or Linux keys? Decide yourself depending on what you are using more often. I guess you reformat code more often than lock screen? So remap Linux and leave IDEA default keyboard shortcut.






                  share|improve this answer
























                  • Thanks for the pragmatic answer (see my comment on askmo's answer) and for linking to the feature request, which I wasn't aware of

                    – Etienne Neveu
                    Apr 5 '11 at 8:49


















                  12














                  There is a feature request to provide Ubuntu friendly keymap.



                  What to remap, IDEA or Linux keys? Decide yourself depending on what you are using more often. I guess you reformat code more often than lock screen? So remap Linux and leave IDEA default keyboard shortcut.






                  share|improve this answer
























                  • Thanks for the pragmatic answer (see my comment on askmo's answer) and for linking to the feature request, which I wasn't aware of

                    – Etienne Neveu
                    Apr 5 '11 at 8:49
















                  12












                  12








                  12







                  There is a feature request to provide Ubuntu friendly keymap.



                  What to remap, IDEA or Linux keys? Decide yourself depending on what you are using more often. I guess you reformat code more often than lock screen? So remap Linux and leave IDEA default keyboard shortcut.






                  share|improve this answer













                  There is a feature request to provide Ubuntu friendly keymap.



                  What to remap, IDEA or Linux keys? Decide yourself depending on what you are using more often. I guess you reformat code more often than lock screen? So remap Linux and leave IDEA default keyboard shortcut.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 4 '11 at 12:40









                  CrazyCoderCrazyCoder

                  277k49654657




                  277k49654657













                  • Thanks for the pragmatic answer (see my comment on askmo's answer) and for linking to the feature request, which I wasn't aware of

                    – Etienne Neveu
                    Apr 5 '11 at 8:49





















                  • Thanks for the pragmatic answer (see my comment on askmo's answer) and for linking to the feature request, which I wasn't aware of

                    – Etienne Neveu
                    Apr 5 '11 at 8:49



















                  Thanks for the pragmatic answer (see my comment on askmo's answer) and for linking to the feature request, which I wasn't aware of

                  – Etienne Neveu
                  Apr 5 '11 at 8:49







                  Thanks for the pragmatic answer (see my comment on askmo's answer) and for linking to the feature request, which I wasn't aware of

                  – Etienne Neveu
                  Apr 5 '11 at 8:49













                  5














                  You can just use the super (aka Windows Key) in combination with your intellijidea shortcut, in order to leave the default shortcuts for Ubuntu.



                  So, you can just



                  Ctrl + Alt + WinKey + L
                  to format the code and



                  Ctrl + Alt + WinKey + Left
                  for navigating backward



                  Hope this helps






                  share|improve this answer






























                    5














                    You can just use the super (aka Windows Key) in combination with your intellijidea shortcut, in order to leave the default shortcuts for Ubuntu.



                    So, you can just



                    Ctrl + Alt + WinKey + L
                    to format the code and



                    Ctrl + Alt + WinKey + Left
                    for navigating backward



                    Hope this helps






                    share|improve this answer




























                      5












                      5








                      5







                      You can just use the super (aka Windows Key) in combination with your intellijidea shortcut, in order to leave the default shortcuts for Ubuntu.



                      So, you can just



                      Ctrl + Alt + WinKey + L
                      to format the code and



                      Ctrl + Alt + WinKey + Left
                      for navigating backward



                      Hope this helps






                      share|improve this answer















                      You can just use the super (aka Windows Key) in combination with your intellijidea shortcut, in order to leave the default shortcuts for Ubuntu.



                      So, you can just



                      Ctrl + Alt + WinKey + L
                      to format the code and



                      Ctrl + Alt + WinKey + Left
                      for navigating backward



                      Hope this helps







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Nov 27 '18 at 6:26









                      Agilanbu

                      1,1701419




                      1,1701419










                      answered Aug 22 '17 at 19:35









                      besilbesil

                      87811425




                      87811425























                          3














                          This works for me in Ubuntu Studio 14.04 (XFCE):




                          • Open Windows Manager: xfwm4-settings

                          • Go to Keyboard tab

                          • Scroll down to conflicting Action

                          • Hit Clear button or change action to different shortcut






                          share|improve this answer




























                            3














                            This works for me in Ubuntu Studio 14.04 (XFCE):




                            • Open Windows Manager: xfwm4-settings

                            • Go to Keyboard tab

                            • Scroll down to conflicting Action

                            • Hit Clear button or change action to different shortcut






                            share|improve this answer


























                              3












                              3








                              3







                              This works for me in Ubuntu Studio 14.04 (XFCE):




                              • Open Windows Manager: xfwm4-settings

                              • Go to Keyboard tab

                              • Scroll down to conflicting Action

                              • Hit Clear button or change action to different shortcut






                              share|improve this answer













                              This works for me in Ubuntu Studio 14.04 (XFCE):




                              • Open Windows Manager: xfwm4-settings

                              • Go to Keyboard tab

                              • Scroll down to conflicting Action

                              • Hit Clear button or change action to different shortcut







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Apr 4 '15 at 11:26









                              luboskrnacluboskrnac

                              15.7k54672




                              15.7k54672























                                  3














                                  In order to disable XUbuntu's (xfce) keymap for
                                  Alt + F8 and
                                  Ctrl + Alt + Left/Right Arrow
                                  I used Settings -> Window Manager -> tab "Keyboard".



                                  Here I was able to clear these mappings.






                                  share|improve this answer




























                                    3














                                    In order to disable XUbuntu's (xfce) keymap for
                                    Alt + F8 and
                                    Ctrl + Alt + Left/Right Arrow
                                    I used Settings -> Window Manager -> tab "Keyboard".



                                    Here I was able to clear these mappings.






                                    share|improve this answer


























                                      3












                                      3








                                      3







                                      In order to disable XUbuntu's (xfce) keymap for
                                      Alt + F8 and
                                      Ctrl + Alt + Left/Right Arrow
                                      I used Settings -> Window Manager -> tab "Keyboard".



                                      Here I was able to clear these mappings.






                                      share|improve this answer













                                      In order to disable XUbuntu's (xfce) keymap for
                                      Alt + F8 and
                                      Ctrl + Alt + Left/Right Arrow
                                      I used Settings -> Window Manager -> tab "Keyboard".



                                      Here I was able to clear these mappings.







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Aug 25 '16 at 16:27









                                      WheneverWhenever

                                      313




                                      313























                                          2














                                          From the link to feature request provided by CrazyCoder:




                                          Actually, there are several bundled schemes: "Default for GNOME", "Default for KDE" created exactly for that purpose.
                                          I have not checked now particular shortcuts like Ctrl+Alt+L, but these schemes were created to avoid conflicts with GNOME and KDE respectively.




                                          "Default for Gnome" did the trick for me (I'm on ArchLinux, Gnome3, AndroidStudio/InteliJ), it remapped Navigate/Back to Shift+Alt+Left (was Ctrl+Alt+Left from "Default for XWin" and it didn't work).



                                          But now it switches may keyboard layout as well (Shift+Alt), another problem )) Probably I'll remap keypad switcher to something else, it is still simpler then reassigning all the conflicting keys in IDE/OS.






                                          share|improve this answer




























                                            2














                                            From the link to feature request provided by CrazyCoder:




                                            Actually, there are several bundled schemes: "Default for GNOME", "Default for KDE" created exactly for that purpose.
                                            I have not checked now particular shortcuts like Ctrl+Alt+L, but these schemes were created to avoid conflicts with GNOME and KDE respectively.




                                            "Default for Gnome" did the trick for me (I'm on ArchLinux, Gnome3, AndroidStudio/InteliJ), it remapped Navigate/Back to Shift+Alt+Left (was Ctrl+Alt+Left from "Default for XWin" and it didn't work).



                                            But now it switches may keyboard layout as well (Shift+Alt), another problem )) Probably I'll remap keypad switcher to something else, it is still simpler then reassigning all the conflicting keys in IDE/OS.






                                            share|improve this answer


























                                              2












                                              2








                                              2







                                              From the link to feature request provided by CrazyCoder:




                                              Actually, there are several bundled schemes: "Default for GNOME", "Default for KDE" created exactly for that purpose.
                                              I have not checked now particular shortcuts like Ctrl+Alt+L, but these schemes were created to avoid conflicts with GNOME and KDE respectively.




                                              "Default for Gnome" did the trick for me (I'm on ArchLinux, Gnome3, AndroidStudio/InteliJ), it remapped Navigate/Back to Shift+Alt+Left (was Ctrl+Alt+Left from "Default for XWin" and it didn't work).



                                              But now it switches may keyboard layout as well (Shift+Alt), another problem )) Probably I'll remap keypad switcher to something else, it is still simpler then reassigning all the conflicting keys in IDE/OS.






                                              share|improve this answer













                                              From the link to feature request provided by CrazyCoder:




                                              Actually, there are several bundled schemes: "Default for GNOME", "Default for KDE" created exactly for that purpose.
                                              I have not checked now particular shortcuts like Ctrl+Alt+L, but these schemes were created to avoid conflicts with GNOME and KDE respectively.




                                              "Default for Gnome" did the trick for me (I'm on ArchLinux, Gnome3, AndroidStudio/InteliJ), it remapped Navigate/Back to Shift+Alt+Left (was Ctrl+Alt+Left from "Default for XWin" and it didn't work).



                                              But now it switches may keyboard layout as well (Shift+Alt), another problem )) Probably I'll remap keypad switcher to something else, it is still simpler then reassigning all the conflicting keys in IDE/OS.







                                              share|improve this answer












                                              share|improve this answer



                                              share|improve this answer










                                              answered Nov 8 '13 at 19:04









                                              MixazMixaz

                                              2,8951943




                                              2,8951943























                                                  2














                                                  In 'Settings' section 'Keymap' you can choose the keymaps template from XWin, Gnome, Visual Studio, Eclipse, etc... This solve any problem in Ubuntu by choosing Gnome.






                                                  share|improve this answer
























                                                  • Down voted because because ubuntu short keys still conflicts with gnome. Refer to jetbrains.com/idea/help/reformatting-source-code.html

                                                    – thomas.han
                                                    Feb 9 '16 at 23:58


















                                                  2














                                                  In 'Settings' section 'Keymap' you can choose the keymaps template from XWin, Gnome, Visual Studio, Eclipse, etc... This solve any problem in Ubuntu by choosing Gnome.






                                                  share|improve this answer
























                                                  • Down voted because because ubuntu short keys still conflicts with gnome. Refer to jetbrains.com/idea/help/reformatting-source-code.html

                                                    – thomas.han
                                                    Feb 9 '16 at 23:58
















                                                  2












                                                  2








                                                  2







                                                  In 'Settings' section 'Keymap' you can choose the keymaps template from XWin, Gnome, Visual Studio, Eclipse, etc... This solve any problem in Ubuntu by choosing Gnome.






                                                  share|improve this answer













                                                  In 'Settings' section 'Keymap' you can choose the keymaps template from XWin, Gnome, Visual Studio, Eclipse, etc... This solve any problem in Ubuntu by choosing Gnome.







                                                  share|improve this answer












                                                  share|improve this answer



                                                  share|improve this answer










                                                  answered Apr 29 '14 at 7:50









                                                  RiRomainRiRomain

                                                  9128




                                                  9128













                                                  • Down voted because because ubuntu short keys still conflicts with gnome. Refer to jetbrains.com/idea/help/reformatting-source-code.html

                                                    – thomas.han
                                                    Feb 9 '16 at 23:58





















                                                  • Down voted because because ubuntu short keys still conflicts with gnome. Refer to jetbrains.com/idea/help/reformatting-source-code.html

                                                    – thomas.han
                                                    Feb 9 '16 at 23:58



















                                                  Down voted because because ubuntu short keys still conflicts with gnome. Refer to jetbrains.com/idea/help/reformatting-source-code.html

                                                  – thomas.han
                                                  Feb 9 '16 at 23:58







                                                  Down voted because because ubuntu short keys still conflicts with gnome. Refer to jetbrains.com/idea/help/reformatting-source-code.html

                                                  – thomas.han
                                                  Feb 9 '16 at 23:58




















                                                  draft saved

                                                  draft discarded




















































                                                  Thanks for contributing an answer to Stack Overflow!


                                                  • Please be sure to answer the question. Provide details and share your research!

                                                  But avoid



                                                  • Asking for help, clarification, or responding to other answers.

                                                  • Making statements based on opinion; back them up with references or personal experience.


                                                  To learn more, see our tips on writing great answers.




                                                  draft saved


                                                  draft discarded














                                                  StackExchange.ready(
                                                  function () {
                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f5536920%2fmanaging-keyboard-shortcut-conflicts-between-ide-and-os-ubuntu%23new-answer', 'question_page');
                                                  }
                                                  );

                                                  Post as a guest















                                                  Required, but never shown





















































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown

































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown







                                                  Popular posts from this blog

                                                  Contact image not getting when fetch all contact list from iPhone by CNContact

                                                  count number of partitions of a set with n elements into k subsets

                                                  A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks