Skip to content

Refactoring Keymap

Alistair McKinnell edited this page Nov 10, 2015 · 18 revisions

Rationale

Make it easier to refactor using the keyboard by adjusting the default keymap to super charge the Option + Command prefix for the most common refactoring actions.

Mechanism

Binding Action
Option + Command + A Annotate
Option + Command + R Rename
Option + Command + M Extract Method
Option + Command + V Extract Variable
Option + Command + C Extract Constant
Option + Command + P Extract Parameter
Option + Command + I Inline
Option + Command + J Join Lines
Option + Command + Up Arrow Extend Selection
Option + Command + Down Arrow Shrink Selection
Option + Command + Z Analyze Stacktrace

Note: some of these are the default bindings; some of them are not.

Clone this wiki locally