A Few Good Shortcuts to Keep in Mind for VS code

Darren Lee
2 min readJul 13, 2021

I am still “surviving”. It is currently Week 10 of my journey in Flatiron. As we continue to learn new programming language, I can’t but help to learn a few new techniques to code faster. Here are a few shortcuts to help us build faster muscle memory in Visual Studio Code!

What is VISUAL STUDIO CODE?
Developed by Microsoft, it is a source code editor used for debugging, syntax highlighting, and just coding. Mainly, VS Code is a playground for your code editing and building for your program.

Let’s get to the shortcuts!!

  1. Searching Text within ALL files at once

Shortcut for mac: Control+shift+F
Shortcut for Windows: Ctrl+Shift+F

After using this shortcut, you see that the sidebar to your left and you can type any text that you want to search. It is easy for developers and saves time. As well as this feature helps to replace the text in the directory.

2. To select in the text (word by word)

It is a very interesting feature of VScode shortcut, by this can easily select your text word by word.

  • Shortcut for macOS: Control+Shift+right arrow for the right side and Control+Shift+left arrow for the left.
  • Shortcut for Windows: Ctrl+shift+right arrow for right and Ctrl+Shift+Left Arrow for left side.

It is very useful for developers to target words faster.

3. Duplicate a line

  • Shortcut for macOS: Control+Shift+down arrow

This is a great way to copy and paste a large code block without having to move the mouse.

4. Moving a line of code’s position…

Shortcut for macOS: option+up arrow (to the line of code move up)
Shortcut for macOS: option+down arrow (to the line of code down up)

Here are some other helpful shortcuts below, Happy coding!

--

--