Within ARC, you have snippets which are pre-built blocks of code which can be inserted into our TI processes. Is there a way to define our own snippets so that they appear in the list? I thought I had seen that, and the splash page for ARC does talk about “user-defined snippets”, but for the life of me I can’t figure out how to do it. Am I missing a button, or a file behind the scenes?
The snippets file needs to be in JSON format, the value is what you see in auto complete and snippet is the content inserted. The placeholders are used to update blocks of code, example: ${1:condition}. If you want code to be updated in multiple locations use the same placeholder number.
If somebody wants to create a snippet with complex code or lots of special characters, I just used this site to convert the desired code to a “escaped” string for json: