Reputation: 1651
Maybe this is wishful thinking, but is there a way to quickly copy, or even just select, multiple lines quickly in Visual Studio? Similar to a multiple yank in vim.
I'm aware of the copying a single line, by just pressing Ctrl+C with nothing selected, but can't find any way of doing this for n
lines.
If there's nothing that comes with it, is there any way to write a macro to achieve this?
Upvotes: 0
Views: 4930
Reputation: 705
In new Visual Studio versions (my one is Version 17.7.4) you can duplicate a line or multiple lines just with Ctrl+D shortcut.
Upvotes: 0
Reputation: 1838
To select multiple lines using the keyboard (starting from the current line, selecting downwards):
Alternatively the UP ARROW can be used to select lines from the starting line up.
Additional info: Combinations of SHIFT, CTRL and all the ARROWS can be used for various cursor moving and character selection, examples:
Upvotes: 1