Sublime Text 2 pro tips

51
Sublime Text

Transcript of Sublime Text 2 pro tips

Page 1: Sublime Text 2 pro tips

Sublime  Text

Page 2: Sublime Text 2 pro tips

Edit

Page 3: Sublime Text 2 pro tips

⌘U

Edit

Undo  Selection

Page 4: Sublime Text 2 pro tips

⇧⌘V

Edit

Paste  and  Indent

Page 5: Sublime Text 2 pro tips

⌃⌘↑

Edit

Swap  Line  Up

Page 6: Sublime Text 2 pro tips

⇧⌘D

Edit

Duplicate  Line

Page 7: Sublime Text 2 pro tips

⌃⇧K

Edit

DeleteLine

Page 8: Sublime Text 2 pro tips

⌃⇧W

Edit

Wrap  Selection  with  Tag

Page 9: Sublime Text 2 pro tips

⌘⌥[

Edit

Fold

Page 10: Sublime Text 2 pro tips

⌘K,  ⌘#

Edit

Fold  Level

Page 11: Sublime Text 2 pro tips

Selection

Page 12: Sublime Text 2 pro tips

⇧⌘␣  

Selection

Expand  Selection  to  Scope

Page 13: Sublime Text 2 pro tips

⇧⌘A

Selection

Expand  Selection  to  tag

Page 14: Sublime Text 2 pro tips

⌘D

Selection

Expand  Selection  to  Word

Page 15: Sublime Text 2 pro tips

⌃⇧↓  

Selection

Add  next  line

Page 16: Sublime Text 2 pro tips

Selection

Single  selection

Page 17: Sublime Text 2 pro tips

Find

Page 18: Sublime Text 2 pro tips

⌘F

Find

Find

Page 19: Sublime Text 2 pro tips

⌘G

Find

Find  Next

Page 20: Sublime Text 2 pro tips

⌃⌘G

Find

Quick  Find  All

Page 21: Sublime Text 2 pro tips

⇧⌘F

Find

Find  in  Files

Page 22: Sublime Text 2 pro tips

View

Page 23: Sublime Text 2 pro tips

⌃⌘F

View

Full  Screen

Page 24: Sublime Text 2 pro tips

⇧⌃⌘F

View

Distraction  Free

Page 25: Sublime Text 2 pro tips

⌥⌘2

View

2  Columns  Layout

Page 26: Sublime Text 2 pro tips

Goto

Page 27: Sublime Text 2 pro tips

⌘P

Goto

Goto  Anything

Page 28: Sublime Text 2 pro tips

⌘#

Goto

Goto  Tab

Page 29: Sublime Text 2 pro tips

Tools

Page 30: Sublime Text 2 pro tips

⌘⇧P

Tools

Command  Pallete

Page 31: Sublime Text 2 pro tips

Tools

Snippets

Current  language  snippets

Page 32: Sublime Text 2 pro tips

⌃Q

Tools

Record  Macro

Page 33: Sublime Text 2 pro tips

⌃⇧Q

Tools

Playback  Macro

Page 34: Sublime Text 2 pro tips

Plugins

Page 36: Sublime Text 2 pro tips

Soda  Theme

Plugins

Page 37: Sublime Text 2 pro tips

DocBlockr

Plugins

Page 38: Sublime Text 2 pro tips

Fetch

Plugins

Page 39: Sublime Text 2 pro tips

Sidebar  Enhancements

Plugins

Page 40: Sublime Text 2 pro tips

Zen  Coding

Plugins

Page 41: Sublime Text 2 pro tips

Prefixr

Plugins

Page 42: Sublime Text 2 pro tips

Advanced  New  File

Plugins

Page 43: Sublime Text 2 pro tips

My  prefs

Page 44: Sublime Text 2 pro tips

tab_size4

My  prefs

Page 45: Sublime Text 2 pro tips

trim_trailing_white_space_on_savetrue

My  prefs

Page 46: Sublime Text 2 pro tips

auto_completefalse

My  prefs

Page 47: Sublime Text 2 pro tips

font_faceConsolas

My  prefs

Page 48: Sublime Text 2 pro tips

$  subl

Page 49: Sublime Text 2 pro tips

ln  -­‐s  "/Applications/Sublime  Text  2.app/Contents/SharedSupport/bin/subl"  ~/bin/subl

$  subl

Page 50: Sublime Text 2 pro tips

$  subl  .

$  subl

Page 51: Sublime Text 2 pro tips

Usage:  subl  [arguments]  [files]                  edit  the  given  files      or:  subl  [arguments]  [directories]      open  the  given  directories      or:  subl  [arguments]  -­‐                              edit  stdin

Arguments:    -­‐-­‐project  <project>:  Load  the  given  project    -­‐-­‐command  <command>:  Run  the  given  command    -­‐n  or  -­‐-­‐new-­‐window:    Open  a  new  window    -­‐a  or  -­‐-­‐add:                  Add  folders  to  the  current  window    -­‐w  or  -­‐-­‐wait:                Wait  for  the  files  to  be  closed  before  returning    -­‐b  or  -­‐-­‐background:    Don't  activate  the  application    -­‐s  or  -­‐-­‐stay:                Keep  the  application  activated  after  closing  the  file    -­‐h  or  -­‐-­‐help:                Show  help  (this  message)  and  exit    -­‐v  or  -­‐-­‐version:          Show  version  and  exit

$  subl