vscode-super-replace icon indicating copy to clipboard operation
vscode-super-replace copied to clipboard

While funciton's arguments not contains 'Index'?

Open RichieChoo opened this issue 4 years ago • 5 comments

My Processing Function is :

(s,p)=> s+(p+1)

RichieChoo avatar Mar 05 '21 02:03 RichieChoo

For example, I want to repalce target with increasing index

RichieChoo avatar Mar 05 '21 02:03 RichieChoo

  • 文本 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

F1yBear avatar Mar 01 '23 10:03 F1yBear

For example, I want to repalce target with increasing index

可以参考这条回复 https://github.com/qjebbs/vscode-super-replace/issues/8#issuecomment-1449809272

F1yBear avatar Mar 01 '23 10:03 F1yBear