Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Optional Regexp ReplaceNew to Visual Studio Code? Get it now.
Optional Regexp Replace

Optional Regexp Replace

qilejia

|
555 installs
| (1) | Free
optional regexp replace
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Optional Regexp Replace

A Visual Studio Code extension to find and replace optionally.

一个可以选择性替换的vs code插件。

Features

In Visual Studio Code, it can only replace one to one, sometimes want to replace it selectively, you have to repeatedly correct RegExp. With this Extension you can write several RegExps and select one to replace.

在vs code中,只能填入一对find/replace,使用这个插件,你可以填写多个正则,选择其中一个进行替换。

  1. you can use RegExp just like in Visual Studio Code, the replacement use String.prototype.replace.
  2. The RegExp options will restore on next open the extension.

Install

copy vscode:extension/qilejia.optional-regexp-replace to browser or search optional-regexp-replace in Visual Studio Code Extensions Market to download.

Use

press Ctrl + Shift + P or Cmd + Shift + P in Visual Studio Code and search optional regexp replace.

  • You can change the background color of the matched word, default is #481D0A.
  • After search, you can click the highlight word in editor to select which to replace, also you can click previous and next button.
  • After you click the matched word, there will be a highlight border around the selected matched part, the default color is #1FA914, you can change it in extension setting. You can also change the whole line border color in settings too, default is #3358D7.

Issue

Report bug or need help click here.


Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft