Duplicate Line Visual Studio 2022

Viewed 915

How do I duplicate the line my cursor is in on Visual Studio 2022.

VS 2017, 2019 it was Ctrl + D.

But that command is not working in 2022.

3 Answers

The chord Ctrl then - E + V duplicates a line.

I had the same issue, the problem is VS 2022 tries to port previous mapping schemes and overwrites the default. Just go to Tools -> Options -> Keyboard, mine had somehow defaulted to Visual C# 2005 so I set it back to (Default). I went from 2019 to 2022 so I am guessing this is a bug..enter image description here

Related