January 9th, 2023
heart19 reactions

Five shortcuts to boost your productivity

Principal Product Manager

Taking full advantage of the Visual Studio editor features will make you a more productive developer. Any keyboard warrior will tell you that knowing the right shortcuts boosts that productivity even further. So, we’ve put together a short little video that demonstrates some useful shortcuts you can use while coding in Visual Studio.

In the video, we cover the following shortcuts:

Ctrl + D Duplicate lines
Ctrl + Shift + L Delete whole line
Shift + Alt + . Select next occurrence
Alt + select Vertical (box) selection
Alt + Ctrl + mouse-click Insert multiple cursors

There are many other features for editing your code. One way to discover them is to look in the Edit menu.

Image edit menu

Happy coding!

Author

Mads Kristensen
Principal Product Manager

Mads Kristensen is a Principal Product Manager at Microsoft, working to enhance productivity and usability in Visual Studio. He’s behind popular extensions like Web Essentials and File Nesting and is active in the open-source community. A frequent speaker, Mads is dedicated to making Visual Studio the most enjoyable IDE for developers.

17 comments

Discussion is closed. Login to edit/delete existing comments.

Sort by :
  • Helder Oliveira

    Sorry by the sidestep: I use Visual Studio 2022 preview. Today it started spell checking variable names and giving hundreds of spell check warnings.

    In this blog on the image that shows the shortcuts (Edit/Advanced) theres an opcion for toggle spell check. I don’t have that option.

    My instal is up to date. How can i toggle spell check?

    Thanks!

  • Ondřej Kubíček

    What about Ctrl + Shift + (Left/Right) Arrow? I use it a lot when positioning multiple carets in different length named properties. Or simply to faster select method name or faster horizontal navigation.

    btw. In table could be the full command name used in Options/Keyboard (eg. Edit.InsertNextMatchingCaret = Select next occurence) in case someone would like to change it or the default one is unmapped for some reason.

  • John Whorfin

    In flagship Visual Studio 2022 for Windows, what’s the shortcut to turn-on the line length guidelines (the one that marks, for example, an 80 character line) in the editor?

  • Brian Baker

    Good tips! It would be nice if the full screen option worked on the embedded YouTube player.