You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github-actions[bot] edited this page Apr 23, 2024
·
3 revisions
Lookup
// open the find widget from text editorconsteditor=newTextEditor();constwidget=awaiteditor.openFindWidget();
Search
// set search textawaitwidget.setSearchText();// get search textconsttext=awaitwidget.getSearchText();// find nextawaitwidget.nextMatch();// find previousawaitwidget.previousMatch();// get result countsconstcounts=awaitwidget.getResultCount();constcurrentResultNumber=counts[0];consttotalCount=counts[1];
Replace
// toggle replace on/offawaitwidget.toggleReplace(true);// or false// set replace textawaitwidget.setReplaceText();// get replace textconsttext=awaitwidget.getReplaceText();// replace current matchawaitwidget.replace();// replace all matchesawaitwidget.replaceAll();