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.

Image of Docusign

Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

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.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs