less copy protection, more size visualization
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

98 lines
2.3 KiB

  1. {
  2. // Place your macrovision workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
  3. // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
  4. // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
  5. // used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
  6. // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
  7. // Placeholders with the same ids are connected.
  8. // Example:
  9. // "Print to console": {
  10. // "scope": "javascript,typescript",
  11. // "prefix": "log",
  12. // "body": [
  13. // "console.log('$1');",
  14. // "$2"
  15. // ],
  16. // "description": "Log output to console"
  17. // }
  18. "author": {
  19. "scope": "javascript",
  20. "prefix": "author",
  21. "body": [
  22. "\"$1\": {",
  23. " \"name\": \"$2\",",
  24. " \"url\": \"$3\",
  25. "},"
  26. ]
  27. },
  28. "citation": {
  29. "prefix": "citation",
  30. "body": [
  31. "{",
  32. " prefix: \"./media/characters/$1/\",",
  33. " files: [",
  34. " { name: \"front.svg\", source: \"\" }",
  35. " ],",
  36. " authors: [",
  37. " \"$2\"",
  38. " ],",
  39. " owners: [",
  40. " \"$3\"",
  41. " ]",
  42. "},"
  43. ],
  44. "description": "Citation"
  45. },
  46. "Character": {
  47. "prefix": "character",
  48. "body": [
  49. "characterMakers.push(() => makeCharacter(",
  50. " { name: \"$1\" },",
  51. " {",
  52. " $2",
  53. " },",
  54. " [",
  55. " $3",
  56. " ]",
  57. "))"
  58. ],
  59. "description": "Character"
  60. },
  61. "View": {
  62. "prefix": "view",
  63. "body": [
  64. "${1/-//g}: {",
  65. " height: math.unit(6, \"feet\"),",
  66. " weight: math.unit(150, \"lb\"),",
  67. " name: \"${1/(.*)/${1:/capitalize}/}\",",
  68. " image: {",
  69. " source: \"./media/characters/$2/$1.svg\"",
  70. " }",
  71. "},"
  72. ],
  73. "description": "View"
  74. },
  75. "Size": {
  76. "prefix": "size",
  77. "body": [
  78. "{",
  79. " name: \"$1\",",
  80. " height: math.unit($2, \"$3\")",
  81. "},"
  82. ],
  83. "description": "Size"
  84. },
  85. "Species": {
  86. "prefix": "species",
  87. "body": [
  88. "\"$1\": {",
  89. " name: \"${1/([^-]+)(-)?/${1:/capitalize}${2:+ }/g}\",",
  90. " parents: [$2]",
  91. "},",
  92. ""
  93. ],
  94. "description": "Species"
  95. }
  96. }