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 Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

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.

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay