Multiple Choice in Visual Studio?

Is there a way to select multiple non-contiguous (fully separated) texts in VS? I can do this in MS Word by highlighting the texts separately while holding down the Ctrl key, for example:

enter image description here

My version is 11.

Edit: I'm not talking about choosing a block Alt+Select. I would also like to see if there is a technique in Notepad ++.

+62
source share
13 answers

Editing multiple cursors is initially supported in Visual Studio starting with version 8, update 8. Here is the documentation:

Select multiple carriages

and here is a screenshot of the available command:

Multiple Carets Menu

+47
source

Visual Studio 2017 SelectNextOccurrence, .

.

Ctrl + D Sublime Text .

:

  • .
  • /
  • (Alt -click )

Visual Studio:

  • SelectNextOccurrence.SelectNextOccurrence Ctrl + D.
  • SelectNextOccurrence.SkipOccurrence . ( Ctrl + K, Ctrl + D)
  • SelectNextOccurrence.UndoOccurrence . ( Ctrl + U)
  • SelectNextOccurrence.AddCaretAbove . ( Ctrl + Alt + Up)
  • SelectNextOccurrence.AddCaretBelow . ( Ctrl + Alt + Down)

SelectNextOccurrence options

https://marketplace.visualstudio.com/items?itemName=thomaswelen.SelectNextOccurrence

https://github.com/2mas/SelectNextOccurrence

+44

MixEdit Visual Studio , . .

+23

Visual Studio Shift+Alt+./Shift+Alt+, Shift+Alt+./Shift+Alt+,

  • Shift+Alt+. - ;
  • Shift+Alt+, - ;

, VSCode Ctrl+D

Tool - Options - Environment - keyboard. Show commands containing Edit. ,

Visual Studio Code. Visual Studio 2017

, Visual Studio

+8

,

MixEdit .

" . MIXEDIT , ".

- - SublimeText.

+7
+6

Visual Studio

, VS, alt+click, ( , , Ubuntu).

, - , ctrl+click.

Selection > Switch to Ctrl+Click for Multi Cursor

+6

, . CodeRush, .

Notepad ++ . -

a > > >

, MS Word, , ( Ctrl, ).

+5

- Multi Line. .

0

shift + alt +. ?

0

In Visual Studio 2019, you can place the cursor in the right place, and then press SHIFT ALT and. (Dot). This will select the next occurrence.

0
source

All Articles