One of the most useful features in Studio is code snippets.
Here's how to add snippets to VSCode.
Here's a generalized instructions.
1. Go to File - Preferences - User Snippets and choose objectscript.
2. Add your snippet, here's an example:
"SQL Statement": {
"prefix": ["sql"],
"body": ["#dim rs As %SQL.ISelectResult",
"set rs = ##class(%SQL.Statement).%ExecDirect(,\"SELECT * FROM\")",
"while rs.%Next() {",
"\twrite rs.ID, !






.png)


