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 + ↑ / ↓