Setting custom autocomplete


#1

I want to set an autocomplete that initiates the 3 comments my professor wants for documentation on each of our function prototypes in C++. I notice how I can type “do” and use autocomplete to set the syntax at least for a do-while loop. I wonder if there’s a way to give autocomplete a template for function documentation so it’ll give me the comment setup, just to make putting the comments in less of a pain, because I know along the way our final program will have tons of functions, thus tons of documentation.


#2

What you want is to make a few snippets. They will be included in the autocomplete popup by the built-in package autocomplete-snippets.