Productivity Tips
In this Visual Studio Code tutorial, we describe Visual Studio Code features that help increase your coding productivity. Learning just a few tips can speed up your workflow and help you discover the full power of the VS Code editor.
Linux users: Make sure you have the correct multimedia codecs installed for your Linux distribution. For example, on Ubuntu, you may need to install
ubuntu-restricted-extras
to get the necessary codecs to play the videos.
Here's the next video we recommend: Personalize Visual Studio Code
Pick another video from the list: Introductory Videos
Video outline
- Find features and keyboard shortcuts in the Command Palette
- View > Command Palette... (
Ctrl+Shift+P
)
- View > Command Palette... (
- Quick Open recent files or search by filename
kb(workbench.action.quickOpen)
to show the Quick Open dropdown
- Go to Line in a file
- type
filename:line number
- type
- Go to Symbol in a file
- type
filename@symbol name
- type
- View Quick Open options
- type
?
- type
- Quick Open multiple files
- press
Right Arrow
to open the selected file but leave the dropdown available
- press
- Multi-cursor selection
Alt+Click
on Windows and Linux,Option+Click
on macOS to add a new cursorkb(editor.action.insertCursorAbove)
kb(editor.action.insertCursorBelow)
to add a new cursor above or below the current positionkb(editor.action.selectHighlights)
to add cursors to all matches of the current selection
- Auto Save changes
- File > Auto Save
- Open the Settings editor
- File > Preferences > Settings (
kb(workbench.action.openSettings)
)
- File > Preferences > Settings (
- Set Format On Type
- check Editor: Format on Type
- Set Format On Paste
- check Editor: Format on Paste
- IntelliSense smart code completions
- trigger IntelliSense with
Ctrl+Space
- trigger IntelliSense with
Next video
- Personalize Visual Studio Code - Learn how to personalize VS Code to your work style with themes.
- Introductory Videos - Review the entire list of videos.
Related resources
- Tips and Tricks - Learn more productivity tips and tricks.
- Code Editing - Discover the full power of the VS Code editor.
- IntelliSense - Smart code completions and methods signatures.