Vscode is very suitable for writing TS and React, recently in Learning AngularJs 2, began to use Vscode, deliberately organized the official website shortcut keys.
General |
Ctrl+shift+p, F1 |
Open Command Panel |
Ctrl+p |
Quickly open files |
Ctrl+shift+n |
Open a new Window/instance |
Ctrl+shift+w |
Close Window/instance |
Basic editing |
Ctrl+x |
Cut when moving forward |
CTRL + C |
Copy when moving forward |
Alt+↑/↓ |
Move up/down when moving forward |
Shift+alt +↓/↑ |
Copy up/down when moving forward |
Ctrl+shift+k |
Delete When moving forward |
Ctrl+enter |
Insert below the current line |
Ctrl+shift+enter |
Insert below the current line |
Ctrl+shift+\ |
Jump to matching parentheses |
CTRL +]/[ |
Indent/Cancel Indent |
Home |
Go to the beginning of the line |
End |
Go to end of line |
Ctrl+home |
Go to top of page |
Ctrl+end |
Go to end of page |
Ctrl+↑/↓ |
Scroll up/Down |
Alt+pgup/pgdown |
Page Up/Down |
ctrl+shift+[ |
Collapse the current code block |
Ctrl+shift+] |
Expand Current code block |
Ctrl+k ctrl+[ |
Collapse All child code blocks |
Ctrl+k Ctrl +] |
Expand all child code blocks |
Ctrl+k ctrl+0 |
Collapse All code blocks |
Ctrl+k Ctrl+j |
Expand All code Blocks |
Ctrl+k Ctrl + C |
Add line Comment |
Ctrl+k Ctrl+u |
Delete line Comment |
ctrl+/ |
Add/Remove Line comments |
Shift+alt+a |
Add/Remove block comments |
Alt+z |
Wrap Line |
Navigation |
ctrl+t |
show all symbols |
ctrl+g |
jump to line |
ctrl+p |
jump to file |
ctrl+shift+o |
jump to symbol |
TD style= "width:50%;" >ctrl+shift+m
display issues panel |
f8 |
Jump to the next question or warning |
shift+f8 |
jump to previous issue or warning |
ctrl+shift+tab |
show editor file history |
alt+←/→ |
backward/Forward View file |
ctrl+m |
|
Search and replace |
Ctrl+f |
Find |
Ctrl+h |
Replace |
F3/shift+f3 |
Find Next/Previous |
Alt+enter |
Select All Matches |
Ctrl+d |
Select the next occurrence |
Ctrl+k Ctrl+d |
Skip the current selection |
ALT+C/R/W |
Toggle case Sensitivity/Regular expression/whole word |
Multiple cursors and selection |
Alt+click |
Insert Cursor |
Ctrl+alt+↑/↓ |
Insert cursor up/down |
Ctrl+u |
Undo Previous cursor |
Shift+alt+i |
Inserts the cursor at the end of the row in the selection |
Ctrl+i |
Select when to move forward |
Ctrl+shift+l |
Selects all occurrences of the currently selected item |
Ctrl+f2 |
Select all occurrences of the current word |
shift+alt+→ |
Extended selection |
shift+alt+← |
Narrow selection |
Shift+alt + (Drag mouse) |
Column (box) selection |
Ctrl+shift+alt + (arrow key) |
Column (box) selection |
Ctrl+shift+alt +pgup/pgdown |
Up page/Next page column (box) selection |
Vscode Common shortcut keys (Windows)