How can I "Add Next Occurrence" in Visual Studio for Mac?
Asked Answered
E

3

8

In Visual Studio Code and Sublime Text there is functionality called "Add Next Occurrence" that selects next occurrence of marked text. The keyboard shortcut for utilizing this function is CMD+D (CTRL+D on Windows and Linux).

This function would select the next occurrence of the text and also add another cursor to the end of the newly selected text.

sublime

How can I achieve this in Visual Studio for Mac?

Exhilaration answered 13/8, 2018 at 13:35 Comment(0)
E
4

Unfortunately, this is not currently supported. There is however an open suggestion to the team that you can up-vote if you would like to see this feature in an upcoming release.

Here is the link to the feature request: https://developercommunity.visualstudio.com/content/idea/351843/multiple-selection-with-the-keyboard.html

Exhilaration answered 13/8, 2018 at 13:35 Comment(0)
K
10

The shortcut is: + + .

(Shift + Option + .)

And its name in the settings is: "Insert next matching caret"

At the moment this answer is the only one working for Visual Studio (tested in 8.9). All the others are for Visual Studio Code.

Kyanize answered 6/3, 2021 at 15:16 Comment(1)
Mine was none by default, thanks for the name "Insert next matching caret"Raye
E
4

Unfortunately, this is not currently supported. There is however an open suggestion to the team that you can up-vote if you would like to see this feature in an upcoming release.

Here is the link to the feature request: https://developercommunity.visualstudio.com/content/idea/351843/multiple-selection-with-the-keyboard.html

Exhilaration answered 13/8, 2018 at 13:35 Comment(0)
D
3

In Mac, CMD + D will do the job.

Dragonfly answered 8/10, 2020 at 5:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.