Right!? It's so useful. I've got my most common stuff all made into snippets that are context sensitive (using some regex magic), so if I hit { inside an object it gives me `: { }`, in a function `const = {}`, in an array or parens {}. It's pretty sweet.
33
u/Earhacker Dec 16 '18
You could go to Menu -> Preferences -> User Snippets -> JavaScript and add this to the file:
And now every time you type "print" in a JS file it will autocomplete to "console.log()" with your cursor between the brackets.
Safe space safely restored!