react monaco-editor findWithArgs

14 Views Asked by At

I'm using @monaco-editor/react

editor.trigger(undefined, 'editor.actions.findWithArgs', {
  searchString: 'abc',
  replaceString: '',
  isRegex: false,
  preserveCase: true,
  findInSelection: false,
  matchWholeWord: true,
  isCaseSensitive: false,
});

// or

editor.trigger(undefined, 'editor.actions.findWithArgs', 'abc')

The result:

enter image description here

But i want:

enter image description here

editor.api.d.ts enter image description here

what should i do

0

There are 0 best solutions below