I am using TexStudio with MikTex. I am using at least two packages regularly to create certain lists. Let us say, in one package I have to use \begin{exam}
and \end{exam}
to start and end list and \item
to create list items. In another package, \begin{test}
and \end{test}
along with \choice
to do the same. There are some other similar commands which are different. The subject matter (contents of items) in both is exactly the same.
I am using Find and Replace
to convert one to another. It takes time to do it carefully, some replacements need to be done whole word some case sensitive and so on.
Question: Is there a way to use Macros with Script in TexStudio to create a Macro which can work for the whole document and do all replacements in one go?
Attempts: In TexStudio user manual at TexStudio Manual it mentions
I have tried using editor.replace("\item","\choice")
but didn't work. I don't know if I am following syntax correctly or not, and what to put in Abbreviation and Trigger.
Any help would be gratefully appreciated.