Overview of useful shortcuts I use (want to memorize and use) every day to optimize repetitive tasks.
I know it by heart. Wake me up at 3 am and I will show you.
I know it pretty well. On very rare occasions I can't hit it.
The learning process is done. It's all about practice now.
I know it, but sometimes I can't get it right the first time.
Fairly new shortcut for me, lots of practice is required.
Action |
Shortcut |
Confidence Level |
Selection |
|
|
Select All |
⌘ A |
![](https://camo.githubusercontent.com/392198fb89cb6d3d54ab7c7ae5c403e773f277828a7be4299eed4a9dc12044f5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352545322539382538352545322539382538352d627269676874677265656e) |
Extend Selection |
⌥ ↑ |
![](https://camo.githubusercontent.com/93e44325ddea6bca68c56548d8ce2eb627378aa292aa6bc85010780e6242861d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352d79656c6c6f77) |
Shrink Selection |
⌥ ↓ |
![](https://camo.githubusercontent.com/93e44325ddea6bca68c56548d8ce2eb627378aa292aa6bc85010780e6242861d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352d79656c6c6f77) |
Editing |
|
|
Copy |
⌘ C |
![](https://camo.githubusercontent.com/392198fb89cb6d3d54ab7c7ae5c403e773f277828a7be4299eed4a9dc12044f5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352545322539382538352545322539382538352d627269676874677265656e) |
Paste |
⌘ V |
![](https://camo.githubusercontent.com/392198fb89cb6d3d54ab7c7ae5c403e773f277828a7be4299eed4a9dc12044f5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352545322539382538352545322539382538352d627269676874677265656e) |
Choose Content to Paste |
⇧ ⌘ V |
![](https://camo.githubusercontent.com/392198fb89cb6d3d54ab7c7ae5c403e773f277828a7be4299eed4a9dc12044f5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352545322539382538352545322539382538352d627269676874677265656e) |
Cut |
⌘ X |
![](https://camo.githubusercontent.com/392198fb89cb6d3d54ab7c7ae5c403e773f277828a7be4299eed4a9dc12044f5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352545322539382538352545322539382538352d627269676874677265656e) |
Delete Line |
⌘ ⌫ |
![](https://camo.githubusercontent.com/392198fb89cb6d3d54ab7c7ae5c403e773f277828a7be4299eed4a9dc12044f5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352545322539382538352545322539382538352d627269676874677265656e) |
Duplicate Line or Selection |
⌘ D |
![](https://camo.githubusercontent.com/392198fb89cb6d3d54ab7c7ae5c403e773f277828a7be4299eed4a9dc12044f5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352545322539382538352545322539382538352d627269676874677265656e) |
Coding |
|
|
Run |
⌃ R |
![](https://camo.githubusercontent.com/27e13c6d683908ab498d1ac30c081871849f27c54fa97929dc1d34504e18d65d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352d726564) |
Run Test |
⌃ ⇧ R |
![](https://camo.githubusercontent.com/27e13c6d683908ab498d1ac30c081871849f27c54fa97929dc1d34504e18d65d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352d726564) |
Reformat Code |
⌥ ⌘ L |
![](https://camo.githubusercontent.com/6c9844c9b73d33410119a8117a216b9ad1a597292fde93121c2de07971371b9d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352545322539382538352d677265656e) |
Generate... |
⌘ N |
![](https://camo.githubusercontent.com/aef5deab26e803d9f94be01b7cc8148166950194b8bc7fa0ff5dde51f2f62c2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352d6f72616e6765) |
Move Statement Up |
⇧ ⌘ ↑ |
![](https://camo.githubusercontent.com/93e44325ddea6bca68c56548d8ce2eb627378aa292aa6bc85010780e6242861d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352d79656c6c6f77) |
Move Statement Down |
⇧ ⌘ ↓ |
![](https://camo.githubusercontent.com/93e44325ddea6bca68c56548d8ce2eb627378aa292aa6bc85010780e6242861d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352d79656c6c6f77) |
List available live templates |
⌘ J |
![](https://camo.githubusercontent.com/27e13c6d683908ab498d1ac30c081871849f27c54fa97929dc1d34504e18d65d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352d726564) |
Render Javadocs |
⌃ ⌥ Q |
![](https://camo.githubusercontent.com/aef5deab26e803d9f94be01b7cc8148166950194b8bc7fa0ff5dde51f2f62c2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352d6f72616e6765) |
Navigation |
|
|
Collapse |
⌘ + |
![](https://camo.githubusercontent.com/27e13c6d683908ab498d1ac30c081871849f27c54fa97929dc1d34504e18d65d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352d726564) |
Collapse All |
⌥ ⌘ + |
![](https://camo.githubusercontent.com/aef5deab26e803d9f94be01b7cc8148166950194b8bc7fa0ff5dde51f2f62c2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352d6f72616e6765) |
Expand |
⌘ - |
![](https://camo.githubusercontent.com/27e13c6d683908ab498d1ac30c081871849f27c54fa97929dc1d34504e18d65d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352d726564) |
Expand All |
⌥ ⌘ - |
![](https://camo.githubusercontent.com/aef5deab26e803d9f94be01b7cc8148166950194b8bc7fa0ff5dde51f2f62c2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352d6f72616e6765) |
Go to Line:Column |
⌘ L |
![](https://camo.githubusercontent.com/aef5deab26e803d9f94be01b7cc8148166950194b8bc7fa0ff5dde51f2f62c2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352d6f72616e6765) |
Go to Super Method |
⌘ U |
![](https://camo.githubusercontent.com/27e13c6d683908ab498d1ac30c081871849f27c54fa97929dc1d34504e18d65d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352d726564) |
Go to Declaration or Usages |
⌘ B |
![](https://camo.githubusercontent.com/27e13c6d683908ab498d1ac30c081871849f27c54fa97929dc1d34504e18d65d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352d726564) |
Go to Implementation(s) |
⌥ ⌘ B |
![](https://camo.githubusercontent.com/27e13c6d683908ab498d1ac30c081871849f27c54fa97929dc1d34504e18d65d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352d726564) |
Go to Test(s) |
⇧ ⌘ T |
![](https://camo.githubusercontent.com/27e13c6d683908ab498d1ac30c081871849f27c54fa97929dc1d34504e18d65d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352d726564) |
Open Settings |
⌘ , |
![](https://camo.githubusercontent.com/93e44325ddea6bca68c56548d8ce2eb627378aa292aa6bc85010780e6242861d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352d79656c6c6f77) |
Switch Tabs (w/ Switcher) |
⌃ ⇥ |
![](https://camo.githubusercontent.com/27e13c6d683908ab498d1ac30c081871849f27c54fa97929dc1d34504e18d65d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352d726564) |
Refactoring |
|
|
Extract Constant |
⌥ ⌘ C |
![](https://camo.githubusercontent.com/93e44325ddea6bca68c56548d8ce2eb627378aa292aa6bc85010780e6242861d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352d79656c6c6f77) |
Extract Variable |
⌥ ⌘ V |
![](https://camo.githubusercontent.com/93e44325ddea6bca68c56548d8ce2eb627378aa292aa6bc85010780e6242861d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352d79656c6c6f77) |
Rename |
⇧ F6 |
![](https://camo.githubusercontent.com/392198fb89cb6d3d54ab7c7ae5c403e773f277828a7be4299eed4a9dc12044f5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352545322539382538352545322539382538352d627269676874677265656e) |
Optimize Imports |
⌃ ⌥ O |
![](https://camo.githubusercontent.com/93e44325ddea6bca68c56548d8ce2eb627378aa292aa6bc85010780e6242861d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352d79656c6c6f77) |
Version Control |
|
|
Show diff |
⌘ D |
![](https://camo.githubusercontent.com/392198fb89cb6d3d54ab7c7ae5c403e773f277828a7be4299eed4a9dc12044f5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352545322539382538352545322539382538352d627269676874677265656e) |
Move to Another Changelist |
⇧ ⌘ M |
![](https://camo.githubusercontent.com/27e13c6d683908ab498d1ac30c081871849f27c54fa97929dc1d34504e18d65d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352d726564) |
Action |
Shortcut |
Confidence Level |
Editing |
|
|
Open Preview |
⇧ ⌘ V |
![](https://camo.githubusercontent.com/93e44325ddea6bca68c56548d8ce2eb627378aa292aa6bc85010780e6242861d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352d79656c6c6f77) |
Navigation |
|
|
Show Extensions |
⇧ ⌘ X |
![](https://camo.githubusercontent.com/27e13c6d683908ab498d1ac30c081871849f27c54fa97929dc1d34504e18d65d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352d726564) |
Action |
Shortcut |
Confidence Level |
Navigation |
|
|
Jump to Next Tab |
⌘ ⌥ → |
![](https://camo.githubusercontent.com/27e13c6d683908ab498d1ac30c081871849f27c54fa97929dc1d34504e18d65d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352d726564) |
Jump to Previous Tab |
⌘ ⌥ ← |
![](https://camo.githubusercontent.com/27e13c6d683908ab498d1ac30c081871849f27c54fa97929dc1d34504e18d65d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352d726564) |
New Tab |
⌘ T |
![](https://camo.githubusercontent.com/27e13c6d683908ab498d1ac30c081871849f27c54fa97929dc1d34504e18d65d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352d726564) |
Action |
Shortcut |
Confidence Level |
Navigation |
|
|
Left Half |
⌃ ⌥ ← |
![](https://camo.githubusercontent.com/93e44325ddea6bca68c56548d8ce2eb627378aa292aa6bc85010780e6242861d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352d79656c6c6f77) |
Right Half |
⌃ ⌥ → |
![](https://camo.githubusercontent.com/93e44325ddea6bca68c56548d8ce2eb627378aa292aa6bc85010780e6242861d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352d79656c6c6f77) |
Top Half |
⌃ ⌥ ↑ |
![](https://camo.githubusercontent.com/93e44325ddea6bca68c56548d8ce2eb627378aa292aa6bc85010780e6242861d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352d79656c6c6f77) |
Bottom Half |
⌃ ⌥ ↓ |
![](https://camo.githubusercontent.com/93e44325ddea6bca68c56548d8ce2eb627378aa292aa6bc85010780e6242861d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352d79656c6c6f77) |
Top Left |
⌃ ⌥ U |
![](https://camo.githubusercontent.com/aef5deab26e803d9f94be01b7cc8148166950194b8bc7fa0ff5dde51f2f62c2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352d6f72616e6765) |
Bottom Left |
⌃ ⌥ J |
![](https://camo.githubusercontent.com/aef5deab26e803d9f94be01b7cc8148166950194b8bc7fa0ff5dde51f2f62c2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352d6f72616e6765) |
Top Right |
⌃ ⌥ I |
![](https://camo.githubusercontent.com/aef5deab26e803d9f94be01b7cc8148166950194b8bc7fa0ff5dde51f2f62c2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352d6f72616e6765) |
Bottom Right |
⌃ ⌥ K |
![](https://camo.githubusercontent.com/aef5deab26e803d9f94be01b7cc8148166950194b8bc7fa0ff5dde51f2f62c2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352d6f72616e6765) |
First Third |
⌃ ⌥ D |
![](https://camo.githubusercontent.com/aef5deab26e803d9f94be01b7cc8148166950194b8bc7fa0ff5dde51f2f62c2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352d6f72616e6765) |
Center Third |
⌃ ⌥ F |
![](https://camo.githubusercontent.com/aef5deab26e803d9f94be01b7cc8148166950194b8bc7fa0ff5dde51f2f62c2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352d6f72616e6765) |
Last Third |
⌃ ⌥ G |
![](https://camo.githubusercontent.com/aef5deab26e803d9f94be01b7cc8148166950194b8bc7fa0ff5dde51f2f62c2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352d6f72616e6765) |
Maximize |
⌃ ⌥ ⏎ |
![](https://camo.githubusercontent.com/93e44325ddea6bca68c56548d8ce2eb627378aa292aa6bc85010780e6242861d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352d79656c6c6f77) |
Action |
Shortcut |
Confidence Level |
Mac keyboard shortcuts |
|
|
Move to Bin |
⌘ ⌫ |
![](https://camo.githubusercontent.com/93e44325ddea6bca68c56548d8ce2eb627378aa292aa6bc85010780e6242861d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352d79656c6c6f77) |
Select All |
⌘ A |
![](https://camo.githubusercontent.com/392198fb89cb6d3d54ab7c7ae5c403e773f277828a7be4299eed4a9dc12044f5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352545322539382538352545322539382538352545322539382538352d627269676874677265656e) |
Extend Selection |
⇧ ↑ |
![](https://camo.githubusercontent.com/27e13c6d683908ab498d1ac30c081871849f27c54fa97929dc1d34504e18d65d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352d726564) |
Shrink Selection |
⇧ ↓ |
![](https://camo.githubusercontent.com/27e13c6d683908ab498d1ac30c081871849f27c54fa97929dc1d34504e18d65d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352d726564) |
Preview file |
Space |
![](https://camo.githubusercontent.com/aef5deab26e803d9f94be01b7cc8148166950194b8bc7fa0ff5dde51f2f62c2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352545322539382538352d6f72616e6765) |
Show hidden files |
⇧ ⌘ . |
![](https://camo.githubusercontent.com/27e13c6d683908ab498d1ac30c081871849f27c54fa97929dc1d34504e18d65d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2545322539382538352d726564) |