Adding custom snippets in VS Code is easy. Open Preferences -> User Snippets
, add following to the global snippets file:
"console.log": { "scope": "html,vue,javascript,typescript", "prefix": "cl", "body": "console.log($0)", "description": "Insert console log statement" }
Now I get a console log statement when typing cl
+ TAB
.