0

I have many shortcuts that don't work in my PHPStorm under Ubuntu (they work on Mac OS X). Basically, the shortcut to comment code (Ctrl+/) doesn't work.

Also CTRL+Alt+Key are OS reserved, no way to specify that PHPStorm is over the OS behaviors?

  • There is no way to change the Ubuntu shortcuts, however you can change the PHPStorm ones. – Tim May 24 '15 at 15:03
  • @Tim That's not true. You can unbind many/most of the Ubuntu shortcuts. I have Ctrl+/, Alt+whatever and many others working in Ubuntu. – mpen May 28 '15 at 22:06
  • @Mark do you have a tutorial for that, it would be a great answer! – Tim May 28 '15 at 22:06
  • @Tim Alright, I wrote something up. I had most of these instructions on our internal wiki, but I suppose I can share them :-) – mpen May 28 '15 at 22:16
2

These instructions are tested on Ubuntu 14.10 w/ Unity.

To make the Alt key work in PhpStorm, see this answer. However, I had some trouble making that work exactly as described, so if it doesn't, try this:

sudo apt-get install compizconfig-settings-manager
ccsm -p move

Change "Initiate Window Move" (first option) to something like ShiftControlAltSuperButton20. Disabling it completely either doesn't work or will cause every click to be a drag (and then you're really in trouble).

enter image description here

If you don't see the button editor as depicted above, click edit, clear the textbox and disable the modifier, press OK, then click on the button where it says "Disabled" and you should see the UI window above. Enable the key again and this time you can easily choose the modifiers.

Once disabled, you can use Alt-click to create multiple cursors in PhpStorm.

Also, take a look at this question to unbind Alt and other shortcuts from Ubuntu.

I've unbound just about everything because I don't use many of those features. If you don't use it, disable it. Otherwise, I recommend the Super(Windows) key for most OS-level shortcuts.

enter image description here

  • 1
    works like a charm with 16.10 thanks! +1 – Max Małecki Jun 27 '17 at 15:17
1

This feature request to provide Ubuntu friendly keymap that will not conflict with the default system shortcuts (which always have priority) may be of interest to you.

Source

  • 2
    Erk. Not so much activity on that. Let's hope they make it ! – Nek May 29 '15 at 9:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.