Editor Macros, found at “System Definition -> Syntax Editor Macros”, are code shortcuts that you can create in ServiceNow to automatically create code-blocks while in a script edito. For example, you can simply type vargr and hit the Tab key. This will create the code block for obtaining a GlideRecord.
by Steve Seibold