DEV Community

Joseph Louie
Joseph Louie

Posted on

5 VScode Shortcuts for MacOS

I enjoy learning and implementing new shortcuts into my coding workflow because it speeds things up. You can use some of these shortcuts even when your not coding!

1. option + shift + left/right arrow key

This will allow you to highlight a word one by one

2. cmd + shift + left/right arrow key

Highlight the whole line you're currently on.

3. ctrl + cmd + g

Will highlight all the instances of whatever you have highlighted.

4. cmd + d

Sometimes you don't want to highlight all instances. You can use this shortcut to highlight one instance at a time.

5. option + up/down arrow key

It allows you to move a line, up or down. All you have to do is put ur cursor on the line you want to move and use the command.

Bonus. option + shift

This duplicates the current line ur cursor is on

I hope you enjoy these shortcuts. I use 1 and 2 frequently outside of VScode. What are some of your favorite shortcuts? Let me know in the comments.

Latest comments (0)