DEV Community

Cover image for Most Useful Visual Studio Code Shortcuts To Improve Your Productivity

Most Useful Visual Studio Code Shortcuts To Improve Your Productivity

Yogesh Chavan on September 25, 2021

Visual Studio Code is the most widely used and most loved code editor for application development. So in this article, we will see some of the wid...
Collapse
 
dimitarpramatarov profile image
Dimitar Pramatarov •

Crtl + x delete the line , also same in copied.

Collapse
 
myogeshchavan97 profile image
Yogesh Chavan •

Yes, it's actually performs the cut operation. Thanks for mentioning it.

Collapse
 
khorne07 profile image
Khorne07 •

I was about to mention that. Actually to delete a line the command is
Ctrl + Shift + K.
By the way, thanks for sharing 👌

Thread Thread
 
myogeshchavan97 profile image
Yogesh Chavan •

You're right. But it requires extra key press but instead ctrl + x does the same work and is quicker.

Thread Thread
 
khorne07 profile image
Khorne07 •

Absolutely yes. In the end depends on if you need to keep previous copied staffs on the clipboard or not.

Collapse
 
ash_bergs profile image
Ash •

As someone who just transitioned from a Windows machine to a Mac... this post couldn't have come at a better time. Thank you for the write up! 🤖

Collapse
 
myogeshchavan97 profile image
Yogesh Chavan •

Glad to hear that this post was helpful to you. Thank you 🙂

Collapse
 
amircahyadi profile image
Amir-cahyadi •

Useful great 👍

Collapse
 
myogeshchavan97 profile image
Yogesh Chavan •

Thank you 🙂

Collapse
 
prabhukadode profile image
Prabhu •

Nice

Collapse
 
myogeshchavan97 profile image
Yogesh Chavan •

Thank you 🙂

Collapse
 
robsonmuniz16 profile image
Robson Muniz •

Hey DEV,
Most Useful Visual Studio Code Shortcuts To Improve Your Productivity?
🤩Wow, Great content!!
I just 💜loved it.
Thanks for sharing it!🙏

Collapse
 
myogeshchavan97 profile image
Yogesh Chavan •

Glad you liked it. Thank you

Collapse
 
mentoraliu profile image
Mentori •

you forgot "Ctrl+/" to comment a line instantly, also "alt+shift+f" to format your code

Collapse
 
myogeshchavan97 profile image
Yogesh Chavan • • Edited

Hi @mentoraliu , thanks for reading. I have already included the comment shortcut. You might have missed it.

I don't use shortcut to format code but I use prettier VS Code extension which formats code automatically when the file is saved.

Check out my this article to understand how to do it.

Collapse
 
josefine profile image
Josefine Schfr •

So helpful - Thanks for putting this together! :)

Collapse
 
myogeshchavan97 profile image
Yogesh Chavan •

Glad you found it helpful 🙂

Collapse
 
kaleemclarkson profile image
Kaleem Clarkson •

Wow! The open and close tab on left is a game changer 👏🏾🙏🏾🙌🏾

Collapse
 
myogeshchavan97 profile image
Yogesh Chavan •

Thank you @kaleemclarkson 🙂

Collapse
 
sachinchaurasiya profile image
Sachin Chaurasiya •

Thank you @myogeshchavan97 for sharing this.

Collapse
 
myogeshchavan97 profile image
Yogesh Chavan •

Thanks @sachinchaurasiya 🙂

Collapse
 
scottastatine profile image
Scott Astatine •

I prefer vim key bindings!

Collapse
 
shriyastout profile image
ShriyaStout •

how to determine tech career path? Dua To Put Love in Someone's Heart