Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Sublime Cheat Sheet for Ruby & Ruby on Rails

Plugins

Window Management

Cucumber

sublimetextrubytests http://goo.gl/njWsBm
railspartial
http://goo.gl/gFo9Wo

One Column
Two Columns

Ctrl+Shft+1
Ctrl+Shft+2

Search Step Defn.


Match Step Defn.

sublimetextgit
http://goo.gl/etjuW0

Four Columns
Two Rows
Three Rows
Switch Window
Close Window

Ctrl+Shft+4
Ctrl+Shft+8
Ctrl+Shft+9
Ctrl+<number>
Ctrl+W

Refactoring

Project
List All Models, Views etc
Ctrl+Shft+P
list
Guard: Start, Stop etc Ctrl+Shft+P guard
Generate Templates
Ctrl+Shft+P generate
Open in Browser
Ctrl+Alt+V
Quick Switch
Ctrl+Alt+P

File Navigation
Related Model
Related Controller
Related View
RSpec Model
RSpec Controller

Super
Super
Super
Super
Super

Find Files with String

Ctrl+Shft+F

+
+
+
+
+

1
2
3
4
5

File
Close File
Indent or Unindent
Highlight Line
Delete Line
Goto Line
Select Next Instance
Move Code Blocks
Toggle Comments
Duplicate Selection
Toggle Sidebar

Ctrl+W
Ctrl+ [ or ]
Ctrl+H
Ctrl+K K
Ctrl+G
Ctrl+D
Ctrl+Shft+Up/Down
Ctrl+/n
Ctrl+Shft+Dn
Ctrl+K B

Evaluate
Evaluate Rails SelectionSuper+K Super+E

Git
All Commands
Git Add

Ctrl+Shft+P git
Ctrl+Shft+P gadd

Git Status
Git Commit
Git Log
Git Diff
Git Push
Git Push
Git Blame

Ctrl+Shft+P
Ctrl+Shft+P
Ctrl+Shft+P
Ctrl+Shft+P
Ctrl+Shft+P
Ctrl+Shft+P
Ctrl+Shft+P

gstat
gcom
glog
gdiff
gpush
gpull
gblame

Super+Shft+M
Ctrl+Shft+P lmig

Testing
Run Single Test
Run All Tests
Run Last Ruby Test
Show Test Panel
Check ERB File Syntax
Switch Code and Test

Search Docs
Ctrl+Shft+P <search>
Beautify Ruby Code
Ctrl+Alt+K
Create Partial
Alt+P
Create Partial and OpenShft+Alt+P
Extract Method
Alt+M
Move Extracted Method Ctrl+Shft+V

Preprocessors
Coffeescript to JS
Display JS
Syntax Check

CSS
Color Picker

Ctrl+Shft+R
Ctrl+Shft+T
Ctrl+Shft+E
Ctrl+Shft+X
Alt+Shft+V
Ctrl+.

Bundle Install
Capistrano Tasks
Rails Generators
Rake Tasks

Ctrl+Shft+C

Ctrl+Alt+B
Ctrl+Alt+C
Ctrl+Alt+G
Ctrl+Alt+R

Fuzzy Search
Fuzzy Find File
Fuzzy Text Search
Fuzzy Symbol Search

Ctrl+P '#'
Ctrl+#
Ctrl+R

* Some plugins or additional configurations may be

RSpec
Build Spec
Navigate Specs

Alt+Shft+C
Alt+Shft+D
Alt+Shft+S

Automation

Migrations
List all Migrations
Latest Migration

Super+Y
Ctrl+SuperM

Ctrl+B
Super+K Super+S

For more Cheat Sheets, visit:


www.icicletech.com/cheatsheets
@icicletech
+icicletech

You might also like