[Tex/LaTex] n Autocorrect feature in TeXStudio 2.6.2


I was wondering if there's an Autocorrect feature in TexStudio 2.6.2 that works like in MS Word so that if I have to type a certain word many times, the editor writes it for me as soon as I press spacebar after I finish typing the shortcut for that particular word. (Eg. phl –> photolithography)

I've already searched StackExchange for similar questions and read Qrrbrbirlbel's comment
here. I've tried my hand at the Macros but it's not working properly, maybe some bug that needs TeXStudio to re-start for it take action or maybe I simply don't know how to make it work.
Can someone help me, please?

Best Answer

From the Macros menu, go to "Edit Macros...". Add a new entry with the "Add" button then type in the specifics of your Macro. Give it a Name for your own ease of use, write the Trigger command (for eg. phl, short for photolithography), select among Normal/Environment/Script (Normal is ok here), then don't forget the crucial step: LaTeX code. In this case I'd type photolithography. Save and close. Then try out your macro, see if it works by writing a couple of sentences that have the trigger word phl and you'll see the Editor replacing it almost immediately with photolithography.

Related Question