A Visual Studio Code extension to find and replace optionally.
一个可以选择性替换的vs code插件。
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,使用这个插件,你可以填写多个正则,选择其中一个进行替换。
- 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.
copy vscode:extension/qilejia.optional-regexp-replace
to browser or search optional-regexp-replace in Visual Studio Code Extensions Market to download.
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
Report bug or need help click here.