vscode-super-replace
vscode-super-replace copied to clipboard
While funciton's arguments not contains 'Index'?
My Processing Function is :
(s,p)=> s+(p+1)
For example, I want to repalce target with increasing index
- 文本 1,2
- 正则
(\d),(\d) - Replace
$$1,$$2 - Processing Function
x=>{
var a = x[0]+1;
var b = x[1]+3;
return [a,b];
}
- 点击extract执行结果 11,23
For example, I want to repalce target with increasing index
可以参考这条回复 https://github.com/qjebbs/vscode-super-replace/issues/8#issuecomment-1449809272