hi, how can i setup either a hot key, or, autocomplete (preferred) for “JSON.stringify” text block. I’m starting to get RSI from the amount of times I type this in my Javascript code and any way to speed this up (aside from cut/paste) would be awesome
Autocomplete or hot key for "JSON.stringify"
skuroda
#2
Add the following to your user key bindings, of course giving it an actual key binding first.
{ "keys": <your key binding here>], "command": "insert_snippet", "args": {"contents": "JSON.stringify"}}
Alternatively, you could create a snippet with a tab trigger, as described in docs.sublimetext.info/en/latest/ … ppets.html.
0 Likes