Sublime Text2 shortcut Key Summary

Source: Internet
Author: User

Take Mac system as an example

One: Editor (the most frequent thing we use in an editor is editing.) ) (1) Basic operation:

"1" command+a: Select All

"2" Command+c: Copy

"3" Command+v: Paste

"4" Command+x: Cut

"5" Command+z: Undo

"6" Command+y: Redo

For code: COMMAND+V also has a high-level shortcut key:

"7" SHIFT+COMMAND+V: its role is to paste and handle indentation.

(2) Line operation, Eclipse has rich line operation shortcut keys. I like it very much. Sublime Text 2 is also a lot.

"1" Ctrl+command+up: Moves the row up.

"2" Ctrl+command+down: Moves the row down.

"3" Command+x: Cuts the current line (can be used as a delete current line) (if the selected area is the clipping track area.) )

"5" shift+command+d: Copy the current line up (that is, insert the same line above the current line, the cursor is still in the current line)

"6" Command+c: Copies the current row when no region is selected. (shift+command+d: Equivalent to command+c then Command+v)

"7" command+] Increase Indent (move right)

"8" command+[Decrease Indent (move left)

"9" Ctrl+shift+k: Deletes the current line. (This is really deleted.) Command+x is cut)

"10" Ctrl+k: Delete to end of line. (Kill)

"11" Coman+backspace: Delete to the beginning of the line

"12" Command+enter: Inserts a row below the current line

"13" Shift+command+enter: Inserts a row above the current line.

"14" command+/: Comment or counter-annotate the current line (or select line)

(3) Text manipulation

"1" Command+k,commamnd+u: Turns the selected or word into size. (Convert (K) to Uppcase)

"2" Command+k,command+l: Converts the selected or located word to lowercase (convert (K) to Lower)

Two: Mobile operation

This is a very important aspect in vim, but in other editors the problem is easily overlooked.

"1" Command+left: Moves to the beginning of the line. Mac Universal

"2" Command+right: Moves to the end of the line. Mac Universal

"3" Home: Move to File header (can also use command+up)

"4" End: Move to end of file (can also use Command+down)

"5" Ctrl+g: Jumps to the specified line. (Go

"6" Ctrl+l: Scrolls the row to the screen (if available) (Locate)

"7" Ctrl+m: Move to match the corresponding parentheses. (Matching Bracket

Four: Multi-line editing

This is a feature of sublime text 2.

"1" Ctrl+shift+down: Add the following line

"2" Ctrl+shift+up: Add the line above.

"3" Command+d: (word) with the next same word (for refactoring the local variable name is particularly useful.) )

Five: Select

Many times, we are accustomed to use the mouse to choose. But sometimes, it is better to use some shortcut keys to choose the effect.

"1" command+l: Select the current row (line), this command can be used infrequently, because you can use the command in line operation instead.

"2" ctrl+shift+m: Select the closest matching pair of parentheses (Matching)

"3" SHIFT+COMMAND+J: Select a continuous (including blank line) row that currently has the same indentation.

VI: Documents (1) Basic operations"1" command+n: New

"2" Command+o: Open

"3" Command+s: Save

"4" Alt+command+s: Save All

(2) Multi-file editing

The "1" command+n:n means to switch to the Nth tab of the page.

"2" Alt+command+left: Next file.

"3" Alt+command+right: Previous file

"4" Command+p: Locates the file based on the file name, or the contents of the document.

"5" Command+r: Based on symbol positioning. (You can use the @ symbol in the root comand+p to locate a file that contains a symbol)

(If you also use eclipse then this command is equivalent to Ctrl+o

(3) Multi-window

"1" alt+command+n:n refers to the number of window columns displayed at the same time.

Seven: Using commands

"1" shift+command+p: Open command command. You can enter the action you want to perform here. Sublime Text 2 's fuzzy search is fast and powerful. This is also a very popular command.

"2" command+ ': Open the console

Sublime Text2 shortcut Key Summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.