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.
 
 
 

108 lines
2.5 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\", species: [\"$2\"], tags: [\"${3:anthro}\"] },",
  51. " {",
  52. " $4",
  53. " },",
  54. " [",
  55. " $5",
  56. " ]",
  57. "))"
  58. ],
  59. "description": "Character"
  60. },
  61. "View": {
  62. "prefix": "view",
  63. "body": [
  64. "${1/(-([a-z]))/${2:/upcase}/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. "Default Size": {
  86. "prefix": "default-size",
  87. "body": [
  88. "{",
  89. " name: \"$1\",",
  90. " height: math.unit($2, \"$3\"),",
  91. " default: true",
  92. "},"
  93. ],
  94. "description": "Default size"
  95. },
  96. "Species": {
  97. "prefix": "species",
  98. "body": [
  99. "\"$1\": {",
  100. " name: \"${1/([^-]+)(-)?/${1:/capitalize}${2:+ }/g}\",",
  101. " parents: [$2]",
  102. "},",
  103. ],
  104. "description": "Species"
  105. }
  106. }