You want to sublime, Webstorm, Vi/vim have to use the shortcut key "briefing" "Practical"

Source: Internet
Author: User
Tags save file sublime text

You want to sublime, Webstorm, Vi/vim have to use the shortcut key "briefing" "Practical"

say not much, go now:

Sublime Text:
  1. Ctrl+d ALT+F3 Select All

  2. Ctrl+shift+ ' (right mouse button) multi-line edit can be individually added first select multiline Ctrl+shift+l end of line edit

  3. Ctrl+shift+a Parent Container Selected

  4. Ctrl+shift+m js, CSS check brackets

  5. Ctrl+shift+↑ or ↓

  6. Ctrl+shift+d Copy Select or copy rows

  7. ctrl+[or] Indent

  8. Ctrl+x Cut

  9. Ctrl+shift+v Keep Indent paste

  10. ALT+SHIFT+W Check define Baoguo label

  11. ctrl+shift+; Clear parent Tag

  12. Ctrl+shift+y calculation

  13. Alt+shift+↑ or ↓,ctrl+↑ or ↓ number increment and decrement

  14. Ctrl+k+u,ctrl+k+l Fast k+u/l Uppercase lowercase

  15. Comments

  16. Ctrl+l Select the entire row, continue to select the next row, the effect is the same as the shift+↓ effect.

  17. CTRL+M cursor moves to the end or start position within the parentheses.

  18. ctrl+shift+[] Collapse code. Ctrl+k+0 expands all collapsed code.

  19. SHIFT + ARROW key to select Text up and down for lines, left and right for text

  20. Ctrl+alt+↑/↓ Add a multiline cursor to the top and bottom, edit multiple lines, corresponding to the same position without the end of the line.

  21. Ctrl+j Merge the selected lines of code to one line. For a chestnut: merge the CSS properties of the multiline format into one line.

  22. Ctrl+k+k removes code from the cursor at the end of the line. Ctrl+shift+k Delete an entire row

  23. Ctrl+y restore Undo.

  24. Ctrl+t around the letter interchange.

  25. F6 Word detection spelling

  26. Ctrl+p Open the Search box. For a chestnut: 1, file name, fast search file, 2, @ and keyword, find function name, 3, enter: + number, jump to the line, 4, #和关键字, find the variable name.

    Ctrl+g Open the Search box, automatically take:, enter a number to jump to that line of code

    Ctrl+r Open the Search box, automatically with @, enter keywords, find the function name in the file.

    CTRL +: Open the search box, automatically with #, enter keywords, find variable names in the file, attribute names, and so on.

    Ctrl+shift+p Open the Command box. Scene Chestnut: Open the Name box, enter the keyword, call sublime text or plug-in features, such as using the package installation plugin install.

  27. Ctrl+pagedown Toggles the tab of the current window to the left.
    Ctrl+pageup Toggles the tab of the current window to the right.
    Alt+shift+num window split screen, restore the default 1 screen (non-keypad number)
    Ctrl+k+b Toggle the sidebar on/off.
    F11 Full Screen mode
    SHIFT+F11 free-to-disturb mode

Webstorm:

  Open:

    1. CTRL + SHIFT + N: Opens the file for any directory under the current project.
    2. ALT + Left/right: Tag Toggle

Code change:

    1. CTRL + ALT + T: Generate around Package code
    2. CTRL + SHIFT +/: Block notes Show:/**/
    3. CTRL + '-/+ ': You can collapse any code block in the project and automatically identify the folds.
    4. Alt+j/alt+shift+j/alt+shift+ctrl+j: Increase check next same Code/erase previous/Select All

Check

    1. CTRL + F12: can display the structure of the current file
    2. CTRL + SHIFT + I: Displays details of the current CSS selector or JS function hover display

Location->go to:

    1. CTRL + B: Skip to variable declaration
    2. CTRL + []: match {}, two lookups can reach superior {}
    3. CTRL + SHIFT +/[: Check Block code
    4. Ctrl+g: Code to the specified line

Vi/vim:

1. Cursor Movement

G move to the last line of the file

H moves to the first line of the screen

L move to the last line of the screen

M moves to the middle line of the screen

W Word move

B Words move forward

^ Move to the first non-null character of the current line

$ move to the last character of the current line

+, Enter moves to the first character of the next line

-Move to the first non-empty character of the previous line

2. Add

A inserts text after the cursor

I insert text before the cursor

I insert text before the current line

A Inserts text Wei the current line

o Insert a new row below the current line

O Insert a new row at the top of the current row

s removes the character at the cursor and enters insert mode

S Delete the line where the cursor is located and enter insert mode

3. Delete

X Delete the character at the cursor

D, d$ Delete from cursor to end of line

DB Delete the word in front of the cursor

DW Delete to the beginning of the next word

DG deletes the line until the end of the file

DD Delete entire row

: N,MD Delete n rows from line m

4. Modifications

Rchar replacing the current character with Char

R text escape replaces the current character with text until the ESC key is pressed

Stext Escape uses text instead of the current character

S or Cctext escape with text instead of whole line

C number Wtext escape change the current word to text

Ctext escape changes the remainder of the current line to text

CG escape modified to the end of the file

5. Find

/text finding text forward in a file

? text looks backwards in the file for text

N repeated lookups in the same direction

N repeated lookups in the opposite direction

6. Copying

YY puts the contents of the current row into a temporary buffer

Nyy the contents of n rows into a temporary buffer

P puts the text in the temporary buffer after the cursor

P put the text in the temporary buffer before the cursor

"(A-Z) NYY copy n rows into a named buffer with a name of parentheses, omitting N to indicate when the forward

"(A-Z) NDD deletes n rows into a named buffer with the name parentheses, omitting N to indicate when the forward

"(A-Z) p puts the contents of a named buffer with parentheses in the current line

"(A-Z) P put the contents of a named buffer with parentheses in front of the current line

7. Revocation and repetition

U Undo Last Modification

U Undo all modifications to the current line

. Repeat last Modification

8. Save and exit

: w save file but do not exit VI

: W file saves the modification in file but does not exit VI

: Wq or ZZ or: x save file and Exit VI

: q! Do not save file, Exit VI

: e! Discard all changes and edit from the last time the file was saved

9. Options

: Set Nu Prints line number before each line:

: Set number shows rows

: Set Nonumber Suppress row count

10.VI status

:. = Prints the line number of the current line

: = number of lines in the print file

CTRL+G Displays the file name, the current line number, the total number of rows in the file, and the percentage of the file location

11. Screen Adjustment

H move the cursor to the top row of the screen

NH moves the cursor to line n on the top row of the screen

M moves the cursor to the middle of the screen

L move the cursor to the bottom row of the screen

NL moves the cursor to the nth line on the bottom line of the screen

^e (Ctrl+e) Scrolls the screen up one line

Ctrl+y rolling the screen down one line

Ctrl+u Roll the screen up half a page

Ctrl+d Roll the screen down half a page

CTRL+B Roll the screen up one page

CTRL+F Roll the screen down one page

Ctrl+l Redraw the screen

Z. Place the current row as the center of the screen

12. Indent

Ctrl+i or tab when inserting text, insert moving width, moving width is defined beforehand

: Set AI turns on auto indent

: Set Sw=n Sets the move width to n characters

N> causes n rows to move one width to the right, such as 3>> to move the next three rows to the right by one moving width.

Yes, it's me, little.

Source: http://www.cnblogs.com/highshao/ This article is copyright to the author and the blog Park, Welcome to reprint, but without the consent of the author must retain this paragraph, and in the article page obvious location to the original link, otherwise reserves the right to pursue legal responsibility.

You want to sublime, Webstorm, Vi/vim have to use the shortcut key "briefing" "Practical"

Related Article

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.