stale_cheetos

joined 10 months ago
[–] [email protected] 4 points 9 months ago

Visual Studio Code has this feature. You can define user snippets using a JSON format and create any alias you like for each. Then, when editing a document you just start typing the alias and press tab when it suggests the snippet (no mousing around required).

You can also create anchor points for variable content that you then tab through and fill out after inserting a snippet. If you find yourself using the same template for your writing this might be a helpful feature.

I’m bad at describing things, here’s some documentation: https://code.visualstudio.com/docs/editor/userdefinedsnippets.

This is all out of the box with no plugins installed. Also, I’ll point out that although the docs are coding related, you can make these work for any type of writing.

1
submitted 9 months ago* (last edited 9 months ago) by [email protected] to c/[email protected]
 

For those unfamiliar with JS: subValue (the first argument in the forEach callback) is the value contained at arr[index].