Cheatography
https://cheatography.com
Setup for Rails development on OSX
General
⌘⇧P |
Any command |
⌘P |
Go to anything |
⌘^P |
Go to project |
⌘R |
Go to symbol |
⌘⇧R |
Go to symbol in project |
⌥⌘↓ |
Go to definition |
^G |
Go to line |
^- |
Jump back |
^⇧- |
Jump forward |
Splits & Tabs
⌘⌥1 |
Single column |
⌘⌥2 |
Two columns |
⌘⌥5 |
Grid |
^1 |
Focus group |
^⇧1 |
Move file to group |
⌘⌥W |
Close other tabs |
Bookmarks
⌘F2 |
Toggle bookmark |
F2 |
Next bookmark |
⇧F2 |
Previous bookmark |
⌘⇧F2 |
Clear bookmarks |
|
|
Editing
⌘D |
Select word |
⌘L |
Select line |
⌘⇧Space |
Select scope |
^⇧M |
Select contents in brackets |
⌘⇧J |
Select indentation |
⌘⇧A |
Select tag |
⌘⇧⏎ |
Insert line before |
⌘⏎ |
Insert line after |
^⇧K |
Delete line |
⌘KK |
Delete from cursor to end of line |
⌘⌫ |
Delete from cursor to start of line |
⌘⇧D |
Duplicate line |
⌘J |
Join line |
⌘KU |
Upper case |
⌘KL |
Lower case |
⌘/ |
Comment |
⌘Y |
Redo |
⌘⇧V |
Paste with indent |
^M |
Jump to matching bracket |
⌘^↑ |
Swap line up |
⌘^↓ |
Swap line down |
⌘U |
Undo momement |
⌘⇧U |
Redo movement |
|
|
HTML / XML
⌘⌥. |
Close tag |
^⇧W |
Wrap selection in tag |
Ruby
⌘^N |
Advanced new file... |
⌘⇧H |
Change 1.8 hash to 1.9 hash |
⌘⌥→ |
Toggle braces to do...end |
⌘⌥← |
Toggle do...end to braces |
⌘⇧; |
Toggle string <-> symbol |
⌘^K |
Beautify Ruby |
Rails Navigation
⌘^M |
List Rails models |
⌘^C |
List Rails controller |
⌘^V |
List Rails views |
⌘^H |
List Rails helpers |
⌘^T |
List Rails specs |
⌘^J |
List Rails javascripts |
⌘^Y |
List Rails stylsheets |
|
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets