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.
you can use RegExp just like in Visual Studio Code, the replacement use String.prototype.replace.
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.