less copy protection, more size visualization
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

142 lignes
3.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\", 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. "View (Form)": {
  76. "prefix": "view-form",
  77. "body": [
  78. "$3_${1/(-([a-z]))/${2:/upcase}/g}: {",
  79. " height: math.unit(6, \"feet\"),",
  80. " weight: math.unit(150, \"lb\"),",
  81. " name: \"${1/(.*)/${1:/capitalize}/}\",",
  82. " image: {",
  83. " source: \"./media/characters/$2/$3-$1.svg\"",
  84. " },",
  85. " form: \"$3\",",
  86. "},"
  87. ],
  88. "description": "View"
  89. },
  90. "Size": {
  91. "prefix": "size",
  92. "body": [
  93. "{",
  94. " name: \"$1\",",
  95. " height: math.unit($2, \"$3\")",
  96. "},"
  97. ],
  98. "description": "Size"
  99. },
  100. "Default Size": {
  101. "prefix": "default-size",
  102. "body": [
  103. "{",
  104. " name: \"$1\",",
  105. " height: math.unit($2, \"$3\"),",
  106. " default: true",
  107. "},"
  108. ],
  109. "description": "Default size"
  110. },
  111. "Species": {
  112. "prefix": "species",
  113. "body": [
  114. "\"$1\": {",
  115. " name: \"${1/([^-]+)(-)?/${1:/capitalize}${2:+ }/g}\",",
  116. " parents: [$2]",
  117. "},",
  118. ],
  119. "description": "Species"
  120. },
  121. "Form": {
  122. "prefix": "form",
  123. "body": [
  124. "\"$1\": {",
  125. " name: \"${1/([^-]+)(-)?/${1:/capitalize}${2:+ }/g}\",",
  126. "},",
  127. ]
  128. },
  129. "Attribute": {
  130. "prefix": "attribute",
  131. "body": [
  132. "\"$1\": {",
  133. " name: \"$2\",",
  134. " power: $3,",
  135. " type: \"$4\",",
  136. " base: math.unit($5, \"$6\")",
  137. "},",
  138. ]
  139. }
  140. }