2013-10-17

IntelliJ IDEA on Ubuntu productivity guide

IDEA from JetBrains is the first choice tool for me since our team migrated to it year and a half ago and there no way back to Eclipse or NetBeans. Everyting is perfect except one flow which turns into major for experienced user: shortcuts tailored for Windows developers and on Ubuntu it turns into hell: lock screens, tty changes, crazy window movement, e.c. for almost all shortcuts. There many keymaps available in IDEA (gnome, kde), but not for Unity. The last drop was master-class from one of developer. So I decided to retrofit Ubuntu: single IDE experience for me more important then single OS experience (especially concider usage of multiple different OSes).

Following recommendations are for Ubuntu 12.04 LTS. Shortcuts and tools may change. I will update this post whenever I configure new shortcut.

CCSM

Fist of all you should install compizconfig-settings-manager, most of customizations could be done in this tool. Launch ccsm.

Find Unity menu turn Hide launcher - autohide (mouse experience), then disable Key to execute command (alt + f2) and Key to show HUD (alt) - both annoying.

Next open Grid menu and disable both Put left and Put right it will free (control+win+arrow) which we will remap later.

At General options disable Toggle window shaded (frees settings shortcut).

At Move window menu disable Initiate window move (alt+f7 or find usages).

Open Desktop wall and remap next bindings: Move within wall from control+alt+arrow to contol+super+arrow, Move with window within wall from control+alt+shift+arrow to control+shift+super+arrow. It will free source code and tab navigation.

Keyboard layout

Locate keyboard layout in system preferences. Find Miscellaneous compatibility and turn on Special keys handled in server. It will turn off virtual terminal change with control+alt+f*, you can remap it in. Frees ctrl+alt+f12.

Keyboard

In system preferences open keyboard (why we need two different dialogs). At Launchers bind launch terminal to alt+f2. At System tab bind Lock screen to super+L (oh, you can finally autoformat code now).

Terminal

Open terminal (alt+f2 now), open Keyboard shortcuts in Edit menu and turn off Enable the menu access key and Enable the menu shortcut key (no more mess with base midnight commander shortcuts). At Profile preferences turn on Unlimited scrolling.

To be continued

Any more ideas?