Many editors and IDE's have the ability for the user to create reusable snippets of code and assign a trigger to insert the snippet.
Sublime's Documentation describes snippets:
Whether you are coding or writing the next vampire best-seller, you’re likely to need certain short fragments of text again and again. Use snippets to save yourself tedious typing. Snippets are smart templates that will insert text for you and adapt it to their context.