VS Code
Reference sheets: WindowsMacLinux
New to JavaScript?
Effect
Shortcut
Demo
![](/static/command_palette-71288c6f3e8cccf66376f04fc38f85be.gif)
Type what you want to do, and the command palette will show you your options, and any shortcut keys associated with them.
Handy for:
- Making notes to your future self or other developers.
- "Turning off" code that you don't want to delete (remember to clean up after yourself!)
Select anywhere in one or more lines; this will comment out the entire line.
Effect
Shortcut
Demo
Performs a "fuzzy match" — type any part(s) of the file name to find it.
Much faster than using the file explorer!
![](/static/scroll_faster-1b926f7a5a3752763ccd51b134eb07a7.gif)
![](/static/toggle_sidebar_and_terminal-219236aea75893e3ff1b78c9d9de699c.gif)
![](/static/toggle_sidebar_and_terminal-219236aea75893e3ff1b78c9d9de699c.gif)
![](/static/fold_all-61e1e4ed5b3606ef83f8669859a16862.gif)
Effect
Shortcut
Demo
![](/static/search_all_files-6a7ac1bccb3cba9a17cca21fec0b3f7f.gif)
Effect
Shortcut
Demo
Search your settings for 'Editor: Multi Cursor Modifier' to change between Ctrl and Alt.
![](/static/line_ends-33e2f4b309b84ac07516d3d82d3fbcec.gif)
Effect
Shortcut
Demo
Select any repeating pattern or word, then use this shortcut repeatedly to select multiple occurrences.
For example: to select all the 'selectme' in 'selectme selectme dontselectme selectme':
Effect
Shortcut
Demo
![](/static/replace_a_match_globally-f0523e4b61ff8e0721cd96a1e821b121.gif)
Replace a selection in all files:
- Select a word
- Ctrl+Shift+H
- Type the replacement word
- Ctrl+Alt+Enter,Enter
Effect
Shortcut
Demo
<section class="list-container"> <li> <ul>item 1</ul> <ul>item 2</ul> <ul>item 3</ul> </li> </section>
Effect
Shortcut
Demo
Note: this will only work as expected if the number of selections when copying equals the number of cursors or selections when pasting.
Effect
Shortcut
Demo
![](/static/move_lines-a843d4165941feb746f7783b08583b72.gif)
![](/static/insert_line_above_below-6bbb501417dde40e44641a0e9a1ba4b2.gif)
![](/static/join_lines-fd316bd49e73631a56d58f30243b6122.gif)
Effect
Shortcut
Demo
![](/static/move_to_new_file-b758dfbef90130d351a77f89e6cf5494.gif)