mbruns

Add Snippets to workspace with JSON

Jun 11th, 2022 (edited)
384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.85 KB | None | 0 0
  1.  // Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
  2.   // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
  3.   // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
  4.   // used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
  5.   // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
  6.   // Placeholders with the same ids are connected.
  7.   // Example: https://stackblitz.com/edit/core-jxgnpk?file=.vscode%2Fsnippets.json
  8. "Print to console": {
  9.     "scope": "javascript,typescript",
  10.     "prefix": "log",
  11.     "body": [
  12.         "console.log('$1');",
  13.         "$2"
  14.     ],
  15.     "description": "Log output to console"
  16.  }
  17. }
Add Comment
Please, Sign In to add comment