Guest User

Untitled

a guest
Dec 12th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. {
  2. // Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and
  3. // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
  4. // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
  5. // same ids are connected.
  6. // Example:
  7. "Print to console": {
  8. "prefix": "log",
  9. "body": [
  10. "console.log('$1', $2);",
  11. "$0"
  12. ],
  13. "description": "Log output to console"
  14. },
  15. "Await with to": {
  16. "prefix": "ato",
  17. "body": [
  18. "await to($1);",
  19. ],
  20. "description": "Insert await to"
  21. },
  22. "For_Loop": {
  23. "prefix": "for",
  24. "body": [
  25. "for (const ${2:element} of ${1:array}) {",
  26. "\t$0",
  27. "}"
  28. ],
  29. "description": "For Loop"
  30. },
  31. "Import CommonJS shortcut": {
  32. "prefix": "creq",
  33. "body": [
  34. "const ${2:libraryIdentifier} = require('${1:libraryName}');",
  35. "$0",
  36. ],
  37. "description": "Import boilerplate with commonJS"
  38. },
  39. "Import ES6": {
  40. "prefix": "imp",
  41. "body": [
  42. "import ${2:variable} from '${1:module}';",
  43. "$0",
  44. ],
  45. "description": "Import with es6"
  46. }
  47. }
Add Comment
Please, Sign In to add comment