![]() Ctrl Home/End Move cursor to beginning / end of file. Examples: function, class, header, or code block. Ctrl g Move cursor to line number (using Goto Anything palette). ( Fn F2 / Shift Fn F2 on OSX.) Alt F2 Select all bookmarks. ( Command Fn F2 on OSX.) F2 Move cursor to next bookmark. Navigation Ctrl m Move cursor to opening or closing backet. ( Cmd k k on OSX.) Ctrl k u Uppercase selected text. ( Cmd Delete on OSX.) Ctrl k k Delete from cursor to end of line. Ctrl k u Delete from cursor to beginning of line. Ctrl Backspace Delete word in front of cursor. Ctrl Shift UpArrow/DownArrow ( Ctrl Cmd UpArrow/DownArrow on OSX) Swap current line (or selected block) with the line above or below. Ctrl Shift j Join all highlighted lines into a single line. Ctrl j Join line below cursor to current line of text. Ctrl Shift d ( Cmd Shift d on OSX.) Duplicate line(s). ( Ctrl x to cut currently selected line.) You can disable this by adding "copy_with_empty_selection": false to your Preferences.sublime-settings file.) Editing Text Ctrl / Comment the highlighted text (or current line) again to un-comment. When nothing is selected, ST will copy/cut the current line of text. Shift Right Click Select columns of text. ( Option Command to fold and unfold on OSX.) Ctrl Alt DownArrow Add line below as multi-selection (UpArrow for line above). ( Ctrl Cmd g on OSX.) Ctrl d Add next occurrence of selection as a multi-selection. Alt F3 Select all occurrences of the highlighted text. ( Cmd g on OSX.) Add shift to go backwards. F3 Go to next occurence of searched-for text. (Subsequent presses of l while holding Ctrl will select lines further down.) Ctrl Shift l Change highlighted block into a multi-selection. Ctrl Shift Space Select attribute value (plus quotes) again to select tag. ( Cmd Shift a on OSX.) Ctrl Shift m Select contents of brackets again to select the brackets too. Selecting Ctrl Shift a Select contents of tag. For OSX, use Command in place of Ctrl, unless otherwise noted. This project doesn't include keyboard commands that are fairly standard to the operating system such as Ctrl Shift t to re-open the most recently closed tab.Ĭommands have been tested in Windows and OSX (sorry Linux folks). (A few keymap customizations are too awesome to be ignored I have included the keymap customizations in the repo for these cases.) Thus, I created this reference focused on keyboard shortcuts that are part of ST's default installation. Sublime Text is at its most sublime when you can remember its most useful and delightful keyboard shortcuts. The Mug of Sublime Text The Mug of Sublime Text A tribute to the Mug of VI
0 Comments
Leave a Reply. |