Skip to content

Latest commit

 

History

History
76 lines (65 loc) · 2.31 KB

CHEATSHEET.md

File metadata and controls

76 lines (65 loc) · 2.31 KB

ST2 Cheatsheet

General

Key Binding Command Action
⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
⌘⇧N new window (useful for new project)

Editing

Key Binding Command Action
⌘L select line (repeat select next lines)
⌘D select word (repeat select others occurrences in context for multiple editing)
⌘⇧↩ insert line before
⌘↩ inter line after
⌃⇧K delete line
⌘KK delete from cursor to end of line
⌘K⌫ delete from cursor to start of line
⌘⇧D duplicate line(s)
⌘J join lines
⌘KU upper case
⌘KL lower case
⌘ / comment
⌘⌥ / block comment
⌘⇧V paste and ident
⌃ space autocomplete (repeat to select next suggestion)
⌃M jump to matching brackets
⌘⌥ . close tag (HTML/XML)
⌘U soft undo (cursor movement)
⌘⇧U soft redo (cursor movement)

Find/Replace

Key Binding Command Action
⌘F find
⌘⌥F replace
⌘⌥G find next occurrence of current word
⌘⌃G select all occurrences of current word for multiple editing
⌘⇧F find in files

Splits/Tabs

Key Binding Command Action
⌘⌥1 single column
⌘⌥2 two columns
⌘⌥5 grid (4 groups)
⌃[1,2,3,4] focus group
⌃⇧[1,2,3,4] move file to group
⌘[1,2,3...] select tab

Package Commands

Key Binding Package Command Action
⌘⌃A Alignment align selected text
⌃⌥] CTags jump to definition
⌃⌥[ CTags jump back
⌃T, ^R CTags jump back
⌘^M SimpleRailsNav list models
⌘^C SimpleRailsNav list controllers
⌘^V SimpleRailsNav list views
⌘^H SimpleRailsNav list helpers
⌘^X SimpleRailsNav list fixtures
⌘^T SimpleRailsNav list specs/tests
⌘^J SimpleRailsNav list javascripts
⌘^Y SimpleRailsNav list stylesheets