Mehrere Cursorauswahl für ein Muster in Visual Studio Code

1691
chingNotCHing

Ich suche nach einer ähnlichen Art und Weise, wie ich in Sublime Text arbeite:

Alle suchen für einen bestimmten regulären Ausdruck. Dann hat es die Texte, die ich brauche, mehrfach ausgewählt.

Ein einfaches Suchen und Ersetzen erfüllt meine Bedürfnisse nicht. Ich muss die Cursor zu einem Segment in den Zeilen bewegen, um sie zu bearbeiten.

Ich bin unter Windows.

3

1 Antwort auf die Frage

11
Anaksunaman

Per an answer to this StackOverflow Question:

  • Do a normal Find ( Ctrl + F ) using regular expressions.

Visual Studio Code RegEx Find

  • Press Alt + Enter to select all the Find matches. This will insert multiple cursors at the end of each occurrence.

  • Use the Left Arrow and Right Arrow keys to move the synced cursors within each selection.

  • Edit selections as necessary.

Official Keyboard Shortcut List For Visual Studio Code On Windows