Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multi-line Editing in Visual Studio

How can I achieve multi-line editing in Visual Studio? For example in Sublime Text I could make it by CTRL + Mouse left button.

like image 393
Frank Lee Mydear Avatar asked May 05 '18 23:05

Frank Lee Mydear


2 Answers

I'm fairly certain you are wanting to click in multiple places in the code, say you have a few lines you copy and pasted over that have the same word that you want to change (without having to do a Find/Replace)

ALT + CTRL + Left Mouse Click in the locations you want to edit, then just start typing.

like image 110
WootyWoodpecker Avatar answered Sep 27 '22 17:09

WootyWoodpecker


You can use ALT + LEFT MOUSE BUTTON and mark the lines you want to write to.

I hope that helps.

like image 25
Kirdus Avatar answered Sep 27 '22 18:09

Kirdus