cheat sheets.

$ cheat textmate_rails
⌘ = command
⌃ = control
⌥ = option
⇧ = shift

Meta
  Find shortcut                             ⌃ ⌘ T
  
File Navigation
  go to file                                  ⌘ T
  go to line                                  ⌘ L
  go to method                              ⇧ ⌘ T
  find in project                           ⇧ ⌘ F
  reveal in project                         ⌃ ⌘ R
  go to related file                     ⌥ ⌘ DOWN
  go to...                            ⇧  ⌥ ⌘ DOWN           

Selection
  select word                                 ⌃ W
  select line                               ⇧ ⌘ L
  select block                              ⇧ ⌘ B

Deleting
  Delete rest of the line                      ⌃K
  Delete line                               ⇧  ⌃K
  Join line                                 ⇧  ⌃J
  
Toggle
  Quotes                                       ⌃"
  Symbol                                       ⌃:
  
Editing
  code completion                          Escape
  fold / unfold                                F1
  comment selection                           ⌘ /
  indent selection                   ⌘ [  and ⌘ ]
  move selection                      ⌃ ⌘ (arrow)
  edit selection                            ⌥ ⌘ A
  column selection                       ⌥ (drag)


Views
  wrap selection as link                    ⌃ ⇧ L
  <%  %>                                      ⌃ ⇧ > (twice)
  <%=  %>                                     ⌃ ⇧ > (once)
  
  create partial from selection             ⌃ ⇧ H
  
Commands                                  ⌃ ⌥ ⌘ C
  run file as ruby                            ⌘ R
  start irb                                 ⌃ ⇧ I

Snippets                                  ⌃ ⌥ ⌘ S
                                      Tab Trigger
  class class_name                          class
  def method_name                             def
  each { |element| ... }                     each
  for element in collection                 forin
  if condition                       if or ifelse
  unless condition                         unless
  :key => "value"                               :
  flash[:notice] = "..."                    flash
  logger.info "..."                          logi
  assert_equal value, @o.attr                  ae
  redirect_to options                     rec[ai]
  render :action => "action"                   ra
  render :partial => "item"               rp[loc]
  create_table "table" ...                    mct
  create several: table.column : , :         mccc

  has_many :objects ...                        hm
  belongs_to :object ...                       bt
  validates_presence_of :attr ...            vpif

                                          Hot Key
  =>                                          ⌃ L
  params[:id]                                 ⌃ P
  session[:user]                              ⌃ J
Version 3, updated 793 days ago.
. o 0 ( | previous | history | revert to | current | diff )
( add new | see all )