DEV Community

Cover image for Here are ten of the most useful shortcuts in VSCode:
Poetry Of Code
Poetry Of Code

Posted on

1 1 1 1 1

Here are ten of the most useful shortcuts in VSCode:

  1. Ctrl + D: Select the next occurrence of the current word. Repeatedly pressing Ctrl + D will select multiple occurrences of the word, making it easy to edit them simultaneously.

  2. Ctrl + / (Slash): Toggle line comments. This shortcut comments or uncomments the selected lines or the current line.

  3. Ctrl + Shift + L: Select all occurrences of the current word. This is useful for quickly selecting and editing all instances of a word in a file.

  4. Ctrl + B: Toggle the sidebar. This shortcut lets you hide or show the file explorer and other sidebars on the left.

  5. Ctrl + Tab: Cycle through open tabs. Use this shortcut to quickly switch between open files in the editor.

  6. Ctrl + Shift + F: Open the Find and Replace panel. This allows you to search for text within your project and replace it if needed.

  7. Ctrl + ` (Backtick): Open and close the integrated terminal. This allows you to run terminal commands without leaving VSCode.

  8. Ctrl + P: Quick Open. This shortcut lets you quickly search for and open files by typing their name. You can also use it to navigate between open files.

  9. Ctrl + Shift + E: Open the file explorer sidebar. This is handy for quickly navigating and managing your project files.

  10. Ctrl + K, Ctrl + S: Show Keyboard Shortcuts. This opens a searchable list of all available VSCode keyboard shortcuts, which can help you discover and learn new shortcuts.

What's your favorite shortcut?

👋 Kindness is contagious

Please leave your appreciation by commenting on this post!

It takes one minute and is worth it for your career.

Get started

Thank you!

Top comments (0)

Visualizing Promises and Async/Await 🤯

async await

☝️ Check out this all-time classic DEV post