In Atom IDE, there is a nice feature called "snippets" which allows you to insert user-defined code blocks by typing a certain sequence of characters: