vs most commonly used shortcut keys



Pay attention to the key sequence: either Ctrl+K, Crtr+C, or Ctrl+K+C


note

Ctrl+K, Crtr+C--------comment selection
Ctrl+K, Crtr+U--------deselect comment content

indentation

Use Tab to increase indentation and Shift+Tabdecrease indentation

line operation

Insert a blank line above the current line -------- Ctrl+Enter
Insert a blank line below the current line -------- Ctrl+Shift+Enter
Copy a whole line of code -------- Ctrl+CYou can copy the current line, No need to select this line
Cut a whole line of code -------- Ctrl+X You can copy the current line without selecting this line (very useful, used to delete the entire line)

Go to the specified row-------- Ctrl+G
Quickly select a row--------Click the left button three times in quick succession on the row to be selected

bracket matching

Check bracket matching (switch between left and right brackets) --------Ctrl +]

word

Ctrl+左右键--------Skip the whole word (no need to skip letters one by one)
Ctrl+Shitf+左右键--------Select the whole word (mainly used to copy one or more words) (very useful )
CTRL+W-------- select the current word

delete

Ctrl+Delete--------Delete to the end of the word (if you delete, you can delete a word without deleting one by one)
Ctrl+L(or Shitf+Delete) -----delete the entire line of code (very useful)

Screen

Ctrl+上下键--------Scroll the page (Scroll the editor, scroll the code screen, but don't move the cursor position, let's not use the mouse to scroll the page, get rid of the shackles of the mouse!!) --------
Shift+Alt+EnterToggle full screen editing

other

Alt+鼠标左键--------Select a rectangular area (this method effectively deletes comments, etc.!)
View the last read location\Reverse the last viewed location------- Ctrl+“-”<kbd>Ctrl+Shift+“-”

find replace

Find and replace: Ctrl+F\Ctrl+H
(Find and replace range can choose "selected content" or "current document", Alt+A replaces all, Alt+R replaces next) : find next: find previous:
F3in
Shift+F3the
Ctrl+Shift+Ffile Find
Ctrl+Shift+H: Replace in Files
Ctrl+I: Incremental Search
Ctrl+Shift+I: Reverse Incremental Search

bookmark

Set bookmark: Ctrl+B+T, jump to bookmark: Ctrl+B+N
Ctrl+B,T/ Ctrl+K,K: toggle bookmark switch
Ctrl+B,N/ Ctrl+K,N: move to next bookmark
Ctrl+B,P: move to previous bookmark
Ctrl+B,C: clear all tags

format

Format the current line (selected content): Ctrl+K, Ctrl+F
Ctrl+K, Ctrl+D--------Format all codes (if this is not available, it should be: Ctrl+K+D)

choose

Shitf+Home-------Select the cursor to the first letter of the line
Shitf+End-------Select the cursor to the last letter of the line
Ctrl+Shitf+Home-------Select to the end of the document
Ctrl+Shitf+End----- ---Select to the end of the document

fold expand

Fold code definition: CTRL + M, CTRL + O
Expand code definition: CTRL + M, CTRL + L
Ctrl+M,M: Hide or expand the current nested fold state
Ctrl+M,L: Set all procedures to the same hidden or expanded state
Ctrl+M+Crtr+P: Stop outlining

classes and methods

Switch between method definition and call points: Ctrl+Shift+7(8)
Shift+Alt+C: New class
Ctrl+Shift+A: New item
Ctrl+Shift+空格键/ Ctrl+K,P: Parameter information
Ctrl+K,M: Generate method stub
Ctrl+K,X: Insert code segment
Ctrl+K,S: Insert outer code

IntelliSense

Force intellisense to show parameter info: Ctrl-Shift-空格;
Ctrl+J: list members intellisense

capitalization

CTRL + UConvert lowercase
CTRL + SHIFT + Uto uppercase

Guess you like

Origin blog.csdn.net/zhaopeng01zp/article/details/128712520