Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Select Same TextNew to Visual Studio Code? Get it now.

Select Same Text

Eric Haynes

|
4,184 installs
| (2) | Free
Multi-select the next exact occurrence of the selected text
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Select Same Text

vscode-select-same-text

The built-in command Add Selection To Next Find Match (editor.action.addSelectionToNextFindMatch) has oft-undesirable behavior in that it honors the settings of the find dialog (case-sensitivity, whole-word, etc.). This extension adds a command to multi-select the next occurrence of the exact, case sensitive text that is currently selected.

Usage

By default, the extension is bound to cmd+shift+d on mac, or ctrl+shift+d on windows/linux. To rebind, in keyboard shortcuts, change the binding for Select Same Text.

Behavior:

  • Does nothing if no text is selected
  • Search downward from the last selection for an exact match
  • Wrap around to the top if last occurrence is selected
  • If the text was selected from right to left, the new selection will be as well
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft