Show Menu
Cheatography

Sublime Text 3 for Rails Cheat Sheet by

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 indent­ation
⌘⇧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 javasc­ripts
⌘^Y
List Rails stylsheets

Setup

       

Help Us Go Positive!

We offset our carbon usage with Ecologi. Click the link below to help us!

We offset our carbon footprint via Ecologi
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Rails 4 Cheat Sheet
            Ruby on Rails Cheat Sheet by Dave Child and addedbytes.com