hot key
-
Multiple cursors to achieve the same content editing *
trigger: alt + mouse click on the code line.
Cancel: Click any line with the mouse -
Comment
Trigger: Single-line comment: ctrl + /
Multi-line comment: ctrl + shift + /
Cancel: Same as above -
Code format
Trigger: Format code: ctrl + shift + L
Auto indent: ctrl + shift + I -
Code operation:
Trigger:
Down/up highlight errors or warnings quickly locate*: Shift+F2
Find variable source: hold down ctrl, move the mouse to the top to view, click to adjust to the corresponding position
Find text in current file: ctrl + F
Find and replace text in the current file: ctrl + R
Find text in the project: ctrl + shift + F
Find and replace text in the project: ctrl + shift + R
Find a folder in the project: ctrl + shift + N
locate line, jump line: ctrl +
Find the category in the G project: ctrl + N to
view the recently opened file: ctrl + E to
move the cursor to the beginning or end of {}[]: ctrl + []
select a block of code, you can quickly copy: ctrl + shift + []
fold Expand the code block in the project
: ctrl +-or + case conversion of selected characters: ctrl + shift + U -
Copy and paste back
ctrl + C copy
ctrl + V paste
ctrl + X cut line
ctrl + D copy line to the next line
ctrl + shift + V display clipboard*
ctrl + Z rewind (code regret) *
ctrl + shift + Z direction Front*
ctrl + A select all
ctrl + W partial selection (continuously pressing W will gradually expand the selection range) -
Switch
alt + ←/→ label switch
Reference:
https://www.cnblogs.com/jiangfeilong/p/11139743.html