VS Code Flashcards
What are the shortcuts for showing command palette? ( 2 )
- Ctrl + Shift + P
- F1
How to quick open file ?
- Ctrl + P
How to open and close window? ( 2 )
- Ctrl + Shift + N
- Ctrl + Shift + W
How to open user settings?
- Ctrl + ,
How to change keyboard settings?
- Ctrl + K then Ctrl + S
How to move the code above or below?
- Alt + ↑ / ↓
How to automatically copy and paste on the above / below ?
- Shift + Alt + ↑ / ↓
How to delete the entire line of code?
- Ctrl + Shift + K
How to insert a line above or below ? ( 2 )
- Ctrl + Enter ( Above )
- Ctrl + Shift + Enter ( Below )
How to jump to the matching bracket ( {} ) ?
- Ctrl + Shift + \
How to indent / outdent line?
- Ctrl + [ / ]
How to go to the start of the code / end of the file?
- Ctrl + Home / end
How to scroll page up and down?
Alt + PgUp / PgDn
How to collapse / unfold the code with {} ( if ( i > 0 ) { System…(”Yes”) }, it will collapse the System…(”Yes”) )
- Ctrl + Shift + [ / ]
How to change the code to comment / change back to code?
- Ctrl + K , Ctrl + C
- Ctrl + K, Ctrl + U
How to toggle line comment
- Ctrl + /
How to navigate a specific line?
- Ctrl + G
How to see created symbols ( created variables , class, methods ), then press what to change the name for the whole project?
- Ctrl + Shift + O
- F2
How to show problems panel?
- Ctrl + Shift + M
Press what to show next / previous error or warning?
- F8
- Shift + F8
How to go to previous tab?
- Ctrl + Shift + Tab
How to go back / forward tab
- Alt + ← / →
How to select multiple line by mouse to edit simultaneously
- Alt + Click
How to insert cursor line above / below ?
Ctrl + Alt + ↑ / ↓
How to undo last cursor operation?
- Ctrl + U
How to highlight current line?
- Ctrl + L
How to format document?
- Shift + Alt + F
How to go to format selection?
- Ctrl + K , Ctrl + F
How to go to definition?
- F12
How to go to peak definition ( open a peak view )?
- Alt + F12
How to open definition on the side?
- Ctrl + K, F12
How to quick fix a code?
- Ctrl + .
How to change the programming language?
- Ctrl + K , M
How to close editor?
- Ctrl + F4
- Ctrl + W
How to split editor?
- Ctrl + \
How to focus into 1st, 2nd or 3rd editor group?
- Ctrl + 1 / 2 / 3
How to focus into previous / next editor group?
- Ctrl + K , Ctrl + ←/→
How to move the active editor group?
- Ctrl+K ← / →
How to create new file ?
- Ctrl + N
How to open file?
- Ctrl + O
How to save as?
- Ctrl + Shift + S
How to save all?
- Ctrl + K S
How to close all ?
- Ctrl + K , Ctrl + W
How to reopen closed editor?
- Ctrl + Shift + T
How to open file location?
- Ctrl + K , R
How to show active file in new window / instance?
- Ctrl + K, Ctrl + O
How to toggle Full Screen ?
- F11
How to toggle editor layout between vertical or horizontal?
- Shift + Alt + 0
How to toggle sidebar visibility?
- Ctrl + B
How to show Explorer / Toogle Focus
- Ctrl + Shift + E
How to show Search?
- Ctrl + Shift + F
How to show Source Control ?
- Ctrl + Shift + G
How to show Debug?
- Ctrl + Shift + D
How to show Extensions?
- Ctrl + Shift + X
How to replace texts in projects?
- Ctrl + Shift + H
How to toggle breakpoint? ( Red Dots )
- F9
How to toggle output panel?
- Ctrl + Shift + U
How to enter / exit Zen Mode?
- Ctrl + K and Z
- Esc 2 times
How to start debug the breakpoint?
- F5
How to show integrated terminal below?
- Ctrl + `
How to create new terminal ?
- Ctrl + Shift + `