Maximize Your Efficiency in Visual Studio Code with These Productive Shortcuts.
Navigate the Editor with Ease: Keyboard Shortcuts to Know.
Table of contents
- Shrink a selection
- Expand a selection
- Duplicate the current line
- Multiple vertical cursors
- Move the line up and down
- Fold a block of code
- UnFold a block of code
- Toggle Terminal
- Jump to the start or end of the line
- Select the whole line
- Open command pallets
- Focus File window
- Change the file tab
- Select all occurrences
- Search and Replace in all open files
- Close an open file
- Open files without the sidebar
- The end
With these productivity-boosting shortcuts, you can unleash the full power of Visual Studio Code. Whether you're a seasoned developer or just getting started, these VSCode tips will help you work faster and more efficiently. These shortcuts will streamline your workflow and help you get more done in less time, from navigating the editor to managing your code. With this guide, you'll be able to work in VSCode smarter, not harder.
Let's dive into them.
Shrink a selection
Shift + Control + left arrow
Expand a selection
Shift + Control + right arrow
Duplicate the current line
Command + D
Multiple vertical cursors
Options + Command + Shift + Arrow down or Arrow up
Move the line up and down
Options + Shift + Arrow down or Arrow up
Fold a block of code
Options + Command + [
UnFold a block of code
Options + Command + ]
Toggle Terminal
Command + J
Jump to the start or end of the line
Command + arrow right or arrow left
Select the whole line
Shift + Command and arrow right or left
Open command pallets
Control + Shift + P
Focus File window
Command + Shift + E
Change the file tab
Control + Tab
Select all occurrences
Command + Control + G
Search and Replace in all open files
Command + Shift + H
Close an open file
Command + W
Open files without the sidebar
Command + P
Type part of the name of the file in the search.
Press Enter to open it.
Are many filenames returned? Don't panic.
Use the keyboard up and down arrow keys to select a desired file. Press Enter to open it.
The end
Did you like the shortcuts?
Follow @davidofug for more free content like this.