Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>RepselNew to Visual Studio Code? Get it now.
Repsel

Repsel

Kazuma Ito

|
17 installs
| (0) | Free
Replace within a Selection
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Repsel

Quickly replace only words within a selection.

Usage

  1. Select the range that contains the word(s) you want to replace.
  2. Launch Replace in Selection command. Default shortcut key is alt+s.
  3. Enter the before-replacement word to the first text box. Then press the Enter to confirm.
  4. Enter the after-replacement word to the second text box, and press the Enter.
  5. Complete!

Settings

Name Description Type Default Example
highlightColor Background color for highlighted words.
You can use CSS colors or Hex color.
string green red
#ff0000
regexpFlags Flags used in regular expression to search target words.
Lean about flags - MDN
string g igm
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft