Reveal your IDE mastery with these exercises
Just clone the repository
git clone https://github.com/sipios/keyboard-shortcuts-golf.git
and open it with your favorite IDE.
In order to achieve the exercises you need to know how to run the following refactoring actions with your IDE shortcuts.
Default shortcuts per IDE per platform |
VS Code MacOS |
VS Code Win / *nix |
IntelliJ MacOs |
IntelliJ Win/*nix |
---|---|---|---|---|
Navigation | ||||
Go Backward | ⌃ - |
Ctrl Alt - |
⌘ [ |
Ctrl Alt ← |
Go Froward | ⌃ ⇧ - |
Ctrl ⇧ - |
⌘ ] |
Ctrl Alt → |
Go to next problem | F8 |
F8 |
F2 |
F2 |
Go to previous problem | ⇧ F8 |
⇧ F8 |
⇧ F2 |
⇧ F2 |
Selection | ||||
Expand | ⌃ ⇧ ⌘ → |
⇧ Alt → |
⌥ ↑ |
Ctrl w |
Shrink | ⌃ ⇧ ⌘ ← |
⇧ Alt ← |
⌥ ↓ |
⇧ Ctrl w |
General | ||||
Rename | F2 |
F2 |
⇧ F6 |
⇧ F6 |
Delete line | ⇧ ⌘ K |
⇧ Ctrl k |
⌘ ⌫ |
Ctrl y |
Refactor | ||||
Introduce method | ⌘ . |
⇧ Ctrl ; |
⌥ ⌘ m |
Ctrl Alt m |
Introduce variable | ⌘ . |
⇧ Ctrl ; |
⌥ ⌘ v |
Ctrl Alt v |
Introduce parameter | ⌘ . |
⇧ Ctrl ; |
⌥ ⌘ p |
Ctrl Alt p |
Introduce field | ⌘ . |
⇧ Ctrl ; |
⌥ ⌘ f |
Ctrl Alt f |
💡 Feel free to customise your shortcuts ! Make your IDE comfy