Skip to content

Instantly share code, notes, and snippets.

@jonschlinkert
Forked from hileon/gist:1311735
Created November 13, 2012 07:30
Show Gist options
  • Select an option

  • Save jonschlinkert/4064483 to your computer and use it in GitHub Desktop.

Select an option

Save jonschlinkert/4064483 to your computer and use it in GitHub Desktop.

Revisions

  1. @hileon hileon revised this gist Dec 30, 2011. 1 changed file with 7 additions and 9 deletions.
    16 changes: 7 additions & 9 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,6 @@ h1. Sublime Text 2 - Useful Shortcuts (Windows)

    h2. General

    | *Ctrl+R* | go to methods |
    | *Ctrl+G* | go to line |
    | *Ctrl+KB* | toggle side bar |
    | *Ctrl+Shift+P* | command prompt |
    | *Ctrl+`* | python console |
    @@ -30,19 +28,19 @@ h2. Editing
    | *Ctrl+M* | jump to matching brackets |
    | *Ctrl+U* | soft undo (movement undo) |

    h2. Navigation/Goto Anywhere

    | *Ctrl+P* | goto anyway. Search files by name in your project. |
    | *Ctrl+R* | goto symbol(functions and classes) in the file. Same as *Ctrl+P*, then type *@*|
    | *Ctrl+;* | goto word in current file. Same as *Ctrl+P*, then type *#*|
    | *Ctrl+G* | goto line in current file. Same as *Ctrl+P*, then type *:*|

    h2. Find/Replace

    | *Ctrl+F* | find |
    | *Ctrl+H* | replace |
    | *Ctrl+Shift+F* | find in files |

    h2. Navigation/Goto Anywhere

    | *Ctrl+P* | goto anyway. Search files by name in your project. |
    | *Ctrl+R* | goto symbol(functions and classes) in the file. Same as *Ctrl+P*, then type @|
    | *Ctrl+;* | goto word in current file. Same as *Ctrl+P*, then type #|
    | *Ctrl+G* | goto line in current file. Same as *Ctrl+P*, then type :|

    h2. Splits/Tabs

    | *Alt+Shift+1* | single column |
  2. @hileon hileon revised this gist Dec 30, 2011. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -36,6 +36,13 @@ h2. Find/Replace
    | *Ctrl+H* | replace |
    | *Ctrl+Shift+F* | find in files |

    h2. Navigation/Goto Anywhere

    | *Ctrl+P* | goto anyway. Search files by name in your project. |
    | *Ctrl+R* | goto symbol(functions and classes) in the file. Same as *Ctrl+P*, then type @|
    | *Ctrl+;* | goto word in current file. Same as *Ctrl+P*, then type #|
    | *Ctrl+G* | goto line in current file. Same as *Ctrl+P*, then type :|

    h2. Splits/Tabs

    | *Alt+Shift+1* | single column |
  3. @hileon hileon revised this gist Oct 25, 2011. 1 changed file with 30 additions and 46 deletions.
    76 changes: 30 additions & 46 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -11,59 +11,43 @@ h2. General

    h2. Editing

    | *⌘L* | select line (repeat select next lines) |
    | *⌘D* | select word (repeat select others occurrences in context for multiple editing) |
    | *⌃⇧M* | select content into brackets |
    | *⌘⇧↩* | 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 |
    | *⌘Y* | redo or repeat |
    | *⌘⇧V* | past and ident |
    | *⌃ space* | autocomplete (repeat to select next suggestion) |
    | *⌃M* | jump to matching brackets |
    | *⌘U* | soft undo (movement undo) |
    | *⌘⇧U* | soft redo (movement redo) |

    h2. XML/HTML

    | *⌘⇧A* | select content into tag |
    | *⌘⌥ .* | close tag |
    | *Ctrl+L* | select line (repeat select next lines) |
    | *Ctrl+D* | select word (repeat select others occurrences in context for multiple editing) |
    | *Ctrl+Shift+M* | select content into brackets |
    | *Ctrl+X* | delete line |
    | *Ctrl+KK* | delete from cursor to end of line |
    | *Ctrl+K+Backspace* | delete from cursor to start of line |
    | *Ctrl+Shift+D* | duplicate line(s) |
    | *Ctrl+J* | join lines |
    | *Ctrl+KU* | upper case |
    | *Ctrl+KL* | lower case |
    | *Ctrl+ /* | comment |
    | *Ctrl+Shift+/* | block comment |
    | *Ctrl+Y* | redo or repeat |
    | *Ctrl+Shift+V* | past and ident |
    | *Alt+/* | autocomplete (repeat to select next suggestion). Default is Ctrl+Space, but it always reserved for language change in Chinese Windows environment. |

    | *Ctrl+M* | jump to matching brackets |
    | *Ctrl+U* | soft undo (movement undo) |

    h2. Find/Replace

    | *⌘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 |
    | *Ctrl+F* | find |
    | *Ctrl+H* | replace |
    | *Ctrl+Shift+F* | find in files |

    h2. Splits/Tabs

    | *⌘⌥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 |
    | *Alt+Shift+1* | single column |
    | *Alt+Shift+2* | two columns |
    | *Alt+Shift+5* | grid (4 groups) |
    | *Ctrl+[1,2,3,4]* | focus group |
    | *Ctrl+Shift+[1,2,3,4]* | move file to group |
    | *Ctrl+[1,2,3...]* | select tab |

    h2. Bookmarks

    | *F2* | toggle bookmark |
    | *Ctrl+F2* | toggle bookmark |
    | *F2* | next bookmark |
    | *⇧F2* | previous bookmark |
    | *⌘⇧F2* | clear bookmarks |

    h2. Marks

    | *⌘K space* | set mark // ⌘K; for me |
    | *⌘KW* | delete from cursor to mark |
    | *⌘KA* | select from cursor to mark |
    | *⌘KG* | clear mark |
    | *Shift+F2* | previous bookmark |
    | *Ctrl+Shift+F2* | clear bookmarks |
  4. @hileon hileon revised this gist Oct 25, 2011. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -3,11 +3,11 @@ h1. Sublime Text 2 - Useful Shortcuts (Windows)
    h2. General

    | *Ctrl+R* | go to methods |
    | *G* | go to line |
    | *KB* | toggle side bar |
    | *⌘⇧P* | command prompt |
    | *`* | python console |
    | *⌘⇧N* | new window (useful for new project) |
    | *Ctrl+G* | go to line |
    | *Ctrl+KB* | toggle side bar |
    | *Ctrl+Shift+P* | command prompt |
    | *Ctrl+`* | python console |
    | *Ctrl+N* | new file |

    h2. Editing

  5. @hileon hileon revised this gist Oct 25, 2011. 1 changed file with 2 additions and 4 deletions.
    6 changes: 2 additions & 4 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,8 @@
    h1. Sublime Text 2 - Useful Shortcuts (Mac OS X)
    h1. Sublime Text 2 - Useful Shortcuts (Windows)

    h2. General

    | *⌘T* | go to file |
    | *⌘⌃P* | go to project |
    | *⌘R* | go to methods |
    | *Ctrl+R* | go to methods |
    | *⌃G* | go to line |
    | *⌘KB* | toggle side bar |
    | *⌘⇧P* | command prompt |
  6. @lucasfais lucasfais revised this gist Sep 20, 2011. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -31,6 +31,8 @@ h2. Editing
    | *⌘⇧V* | past and ident |
    | *⌃ space* | autocomplete (repeat to select next suggestion) |
    | *⌃M* | jump to matching brackets |
    | *⌘U* | soft undo (movement undo) |
    | *⌘⇧U* | soft redo (movement redo) |

    h2. XML/HTML

  7. @lucasfais lucasfais revised this gist Sep 20, 2011. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,7 @@ h2. General
    | *⌘KB* | toggle side bar |
    | *⌘⇧P* | command prompt |
    | *⌃ `* | python console |
    | *⌘⇧N* | new window (useful for new project) |

    h2. Editing

  8. @lucasfais lucasfais revised this gist Sep 19, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ h2. General
    | *⌘⌃P* | go to project |
    | *⌘R* | go to methods |
    | *⌃G* | go to line |
    | *⌘K-B* | toggle side bar |
    | *⌘KB* | toggle side bar |
    | *⌘⇧P* | command prompt |
    | *⌃ `* | python console |

  9. @lucasfais lucasfais revised this gist Sep 19, 2011. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,13 @@
    h1. Sublime Text 2 - Useful Shortcuts (Mac OS X)

    h2. Open/Goto
    h2. General

    | *⌘T* | go to file |
    | *⌘⌃P* | go to project |
    | *⌘R* | go to methods |
    | *⌘⇧P* | command prompt |
    | *⌃G* | go to line |
    | *⌘K-B* | toggle side bar |
    | *⌘⇧P* | command prompt |
    | *⌃ `* | python console |

    h2. Editing
  10. @lucasfais lucasfais revised this gist Sep 11, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -26,7 +26,7 @@ h2. Editing
    | *⌘ /* | comment |
    | *⌘⌥ /* | block comment |
    | *⌘Y* | redo or repeat |
    | *⌘⇧Z* | past and ident |
    | *⌘⇧V* | past and ident |
    | *⌃ space* | autocomplete (repeat to select next suggestion) |
    | *⌃M* | jump to matching brackets |

  11. @lucasfais lucasfais revised this gist Sep 10, 2011. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -23,8 +23,8 @@ h2. Editing
    | *⌘J* | join lines |
    | *⌘KU* | upper case |
    | *⌘KL* | lower case |
    | *⌘/* | comment |
    | *⌘⌥/* | block comment |
    | *⌘ /* | comment |
    | *⌘⌥ /* | block comment |
    | *⌘Y* | redo or repeat |
    | *⌘⇧Z* | past and ident |
    | *⌃ space* | autocomplete (repeat to select next suggestion) |
  12. @lucasfais lucasfais revised this gist Sep 10, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ h2. Open/Goto
    | *⌘R* | go to methods |
    | *⌘⇧P* | command prompt |
    | *⌃G* | go to line |
    | *⌃ `* | Python console |
    | *⌃ `* | python console |

    h2. Editing

  13. @lucasfais lucasfais revised this gist Sep 10, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ h2. Open/Goto
    | *⌘R* | go to methods |
    | *⌘⇧P* | command prompt |
    | *⌃G* | go to line |
    | *⌃`* | Python console |
    | *⌃ `* | Python console |

    h2. Editing

  14. @lucasfais lucasfais revised this gist Sep 10, 2011. 2 changed files with 67 additions and 62 deletions.
    67 changes: 67 additions & 0 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,67 @@
    h1. Sublime Text 2 - Useful Shortcuts (Mac OS X)

    h2. Open/Goto

    | *⌘T* | go to file |
    | *⌘⌃P* | go to project |
    | *⌘R* | go to methods |
    | *⌘⇧P* | command prompt |
    | *⌃G* | go to line |
    | *⌃`* | Python console |

    h2. Editing

    | *⌘L* | select line (repeat select next lines) |
    | *⌘D* | select word (repeat select others occurrences in context for multiple editing) |
    | *⌃⇧M* | select content into brackets |
    | *⌘⇧↩* | 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 |
    | *⌘Y* | redo or repeat |
    | *⌘⇧Z* | past and ident |
    | *⌃ space* | autocomplete (repeat to select next suggestion) |
    | *⌃M* | jump to matching brackets |

    h2. XML/HTML

    | *⌘⇧A* | select content into tag |
    | *⌘⌥ .* | close tag |

    h2. Find/Replace

    | *⌘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 |

    h2. Splits/Tabs

    | *⌘⌥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 |

    h2. Bookmarks

    | *⌘F2* | toggle bookmark |
    | *F2* | next bookmark |
    | *⇧F2* | previous bookmark |
    | *⌘⇧F2* | clear bookmarks |

    h2. Marks

    | *⌘K space* | set mark // ⌘K; for me |
    | *⌘KW* | delete from cursor to mark |
    | *⌘KA* | select from cursor to mark |
    | *⌘KG* | clear mark |
    62 changes: 0 additions & 62 deletions sublime_text_2_useful_shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -1,62 +0,0 @@
    # Sublime Text 2 - Useful Shortcuts #

    *Tested in Mac OS X: super == command*

    ## Open/Goto ##
    - super+t: go to file
    - super+ctrl+p: go to project
    - super+r: go to methods
    - super+shift+p: command prompt
    - ctrl+g: go to line
    - ctrl+`: Python console

    ## Editing ##
    - super+l: select line (repeat select next lines)
    - super+d: select word (repeat select others occurrences in context for multiple editing)
    - ctrl+shift+m: select content into brackets
    - super+shift+enter: insert line before
    - super+enter: inter line after
    - ctrl+shift+k: delete line
    - super+k-k: delete from cursor to end of line
    - super+k-backspace: delete from cursor to start of line
    - super+shift+d: duplicate line(s)
    - super+j: join lines
    - super+k-u: upper case
    - super+k-l: lower case
    - super+/: comment
    - super+alt+/: block comment
    - super+y: redo or repeat
    - super+shift+z: past and ident
    - ctrl+space: autocomplete (repeat to select next suggestion)
    - ctrl+m: jump to matching brackets

    ## XML/HTML ##
    - super+shift+a: select content into tag
    - super+alt+.: close tag

    ## Find/Replace ##
    - super+f: find
    - super+alt+f: replace
    - super+alt+g: find next occurrence of current word
    - super+ctrl+g: select all occurrences of current word for multiple editing
    - super+shift+f: find in files

    ## Splits/Tabs ##
    - super+alt+1: Single column
    - super+alt+2: Two columns
    - super+alt+5: Grid (4 groups)
    - ctrl+[1,2,3,4]: Focus group
    - ctrl+shift[1,2,3,4]: Move file to group
    - super+[1,2,3...] Select tab

    ## Bookmarks ##
    - super+f2: Toggle bookmark
    - f2: next bookmark
    - shift+f2: previous bookmark
    - super+shift+f2: clear bookmarks

    ## Marks ##
    - super+k-space: set mark // super+k-; for me
    - super+k-w: delete from cursor to mark
    - super+k-a: select from cursor to mark
    - super+k-g: clear mark
  15. @lucasfais lucasfais revised this gist Sep 9, 2011. 1 changed file with 9 additions and 17 deletions.
    26 changes: 9 additions & 17 deletions sublime_text_2_useful_shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,16 @@
    Sublime Text 2 - Useful Shortcuts
    =================================
    # Sublime Text 2 - Useful Shortcuts #

    *Tested in Mac OS X: super == command*

    Open/Goto
    _________
    ## Open/Goto ##
    - super+t: go to file
    - super+ctrl+p: go to project
    - super+r: go to methods
    - super+shift+p: command prompt
    - ctrl+g: go to line
    - ctrl+`: Python console

    Editing
    _______
    ## Editing ##
    - super+l: select line (repeat select next lines)
    - super+d: select word (repeat select others occurrences in context for multiple editing)
    - ctrl+shift+m: select content into brackets
    @@ -33,38 +30,33 @@ _______
    - ctrl+space: autocomplete (repeat to select next suggestion)
    - ctrl+m: jump to matching brackets

    XML/HTML
    ________
    ## XML/HTML ##
    - super+shift+a: select content into tag
    - super+alt+.: close tag

    Find/Replace
    ____________
    ## Find/Replace ##
    - super+f: find
    - super+alt+f: replace
    - super+alt+g: find next occurrence of current word
    - super+ctrl+g: select all occurrences of current word for multiple editing
    - super+shift+f: find in files

    Splits/Tabs
    ___________
    ## Splits/Tabs ##
    - super+alt+1: Single column
    - super+alt+2: Two columns
    - super+alt+5: Grid (4 groups)
    - ctrl+[1,2,3,4]: Focus group
    - ctrl+shift[1,2,3,4]: Move file to group
    - super+[1,2,3...] Select tab

    Bookmarks
    _________
    ## Bookmarks ##
    - super+f2: Toggle bookmark
    - f2: next bookmark
    - shift+f2: previous bookmark
    - super+shift+f2: clear bookmarks

    Marks
    _____
    ## Marks ##
    - super+k-space: set mark // super+k-; for me
    - super+k-w: delete from cursor to mark
    - super+k-a: select from cursor to mark
    - super+k-g: clear mark
    - super+k-g: clear mark
  16. @lucasfais lucasfais renamed this gist Sep 9, 2011. 1 changed file with 0 additions and 0 deletions.
  17. @lucasfais lucasfais revised this gist Sep 9, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion sublime_text_2_useful_shortcuts
    Original file line number Diff line number Diff line change
    @@ -67,4 +67,4 @@ _____
    - super+k-space: set mark // super+k-; for me
    - super+k-w: delete from cursor to mark
    - super+k-a: select from cursor to mark
    - super+k-g: clear mark
    - super+k-g: clear mark
  18. @invalid-email-address Anonymous created this gist Sep 9, 2011.
    70 changes: 70 additions & 0 deletions sublime_text_2_useful_shortcuts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,70 @@
    Sublime Text 2 - Useful Shortcuts
    =================================

    *Tested in Mac OS X: super == command*

    Open/Goto
    _________
    - super+t: go to file
    - super+ctrl+p: go to project
    - super+r: go to methods
    - super+shift+p: command prompt
    - ctrl+g: go to line
    - ctrl+`: Python console

    Editing
    _______
    - super+l: select line (repeat select next lines)
    - super+d: select word (repeat select others occurrences in context for multiple editing)
    - ctrl+shift+m: select content into brackets
    - super+shift+enter: insert line before
    - super+enter: inter line after
    - ctrl+shift+k: delete line
    - super+k-k: delete from cursor to end of line
    - super+k-backspace: delete from cursor to start of line
    - super+shift+d: duplicate line(s)
    - super+j: join lines
    - super+k-u: upper case
    - super+k-l: lower case
    - super+/: comment
    - super+alt+/: block comment
    - super+y: redo or repeat
    - super+shift+z: past and ident
    - ctrl+space: autocomplete (repeat to select next suggestion)
    - ctrl+m: jump to matching brackets

    XML/HTML
    ________
    - super+shift+a: select content into tag
    - super+alt+.: close tag

    Find/Replace
    ____________
    - super+f: find
    - super+alt+f: replace
    - super+alt+g: find next occurrence of current word
    - super+ctrl+g: select all occurrences of current word for multiple editing
    - super+shift+f: find in files

    Splits/Tabs
    ___________
    - super+alt+1: Single column
    - super+alt+2: Two columns
    - super+alt+5: Grid (4 groups)
    - ctrl+[1,2,3,4]: Focus group
    - ctrl+shift[1,2,3,4]: Move file to group
    - super+[1,2,3...] Select tab

    Bookmarks
    _________
    - super+f2: Toggle bookmark
    - f2: next bookmark
    - shift+f2: previous bookmark
    - super+shift+f2: clear bookmarks

    Marks
    _____
    - super+k-space: set mark // super+k-; for me
    - super+k-w: delete from cursor to mark
    - super+k-a: select from cursor to mark
    - super+k-g: clear mark