DEV Community

GaMa
GaMa

Posted on

16 1

Visual Studio Code Cheat Sheet

I will update this post as I found shortcuts in vscode that I consider might be useful :)

Select and edit text based on a regex

  1. Ctrl+F : Open find widget.
  2. Alt+R : Turn on regex mode.
  3. Input search text : Regex text or normal text.
  4. Alt+Enter : Select all matches.
  5. Left arrow : Adjust cursors. (Ignore this step if you don't want to edit the selected text.)
  6. Edit text : Do what you want.(Ignore this step if you don't want to edit the selected text.)
  7. Shift+Home : Select modified text.(Ignore this step if you don't want to edit the selected text.)
  8. Ctrl+C : Copy selected text.
  9. Ctrl+N : Open a new tab.
  10. Ctrl+V : Paste.

Example

Compare files

  1. Open the first file to compare.
  2. ⌘ + ⇧ + P to bring the menu
  3. Type: Files: Compare Active File With...
  4. Select the file to compare to.

Billboard image

Synthetic monitoring. Built for developers.

Join Vercel, Render, and thousands of other teams that trust Checkly to streamline monitor creation and configuration with Monitoring as Code.

Start Monitoring

Top comments (1)

Collapse
 
abrandao profile image
Anderson Brandão

Some keybinds I like:

Ctrl+Delete to delete a word.
Ctrl+P to find a file or folder (That's amazing).
Ctrl+B toggle sidebar.
Ctrl+Home go to begining of file.
Ctrl+End got to end of file.

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay