Ad

Duplicate Line Visual Studio 2022

- 1 answer

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.

Ad

Answer

Ctrl+D should work

Maybe you have different keys assigned, or an extension is using it.

Have a look at your Keyboard settings

https://docs.microsoft.com/en-us/visualstudio/ide/identifying-and-customizing-keyboard-shortcuts-in-visual-studio?view=vs-2022

Ad
source: stackoverflow.com
Ad