Sei sulla pagina 1di 2

http://github.

com

Sublime Text 2 - Useful Shortcuts (Windows 7 CHS) - Gist is a simple way to share snippets of text and code with others. Loosely ordered with the commands used most towards the top. Sublime also offer full documentation.
Editing

Ctrl++K Ctrl+ Ctrl++ Ctrl++ Ctrl+L Ctrl+D Ctrl+M

delete line insert line after insert line before move line (or selection) up select line (repeat to select next lines) select word (repeat select others occurrences in context for multiple editing) jump to closing bracket for current code, repeat to jump to opening bracket select all contents of the current brackets (curly brackets, square brackets, Ctrl++M parentheses) Ctrl+KK delete from cursor to end of line Ctrl+K+ delete from cursor to start of line indent current line(s) Ctrl+] un-indent current line(s) Ctrl+[ Ctrl++D duplicate line(s) join line below to the end of the current line Ctrl+J comment/un-comment current line Ctrl+ / Ctrl++/ block comment current selection redo, or repeat last keyboard shortcut command Ctrl+Y Ctrl++V paste and indent correctly select next auto-complete suggestion (User Defined) Alt+ / soft undo (somehow undoes your movements; it jumps to your last change before Ctrl+U undoing it when you repeat this command)
Navigation/Goto Anywhere

quick-open files by name in your project (doesnt seem to need an actual project set up, it just searches in the directories around the currently-opened file 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: Ctrl+P
General

Ctrl++P command prompt

Ctrl+KB toggle side bar


Find/Replace

Ctrl+F find Ctrl+H replace Ctrl++F find in files


Tabs

Ctrl++t open last closed tab (just like in your browser) Ctrl+PgDn cycle down through open tabs, cycle up with Ctrl+PgUp cycle through last tabs (repeat to go back further in history) Ctrl+
Split window

split into two columns Alt++2 revert to single column Alt++1 grid (4 groups) Alt++5 Ctrl+[1,2,3,4] jump to group (pane) Ctrl++[1,2,3,4] move file to specified group
Bookmarks

Ctrl+F2 toggle bookmark next bookmark F2 previous bookmark +F2 Ctrl++F2 clear bookmarks
Text manipulation

Ctrl+KU upper case Ctrl+KL lower case

Potrebbero piacerti anche