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.
 
 
 

89 lines
2.1 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[\"$1\"] = () => {",
  50. " return makeCharacter(",
  51. " \"$1\",",
  52. " {",
  53. "",
  54. " },",
  55. " [",
  56. " ",
  57. " ]",
  58. " )",
  59. "};"
  60. ],
  61. "description": "Character"
  62. },
  63. "View": {
  64. "prefix": "view",
  65. "body": [
  66. "${1/-//g}: {",
  67. " height: math.unit(6, \"feet\"),",
  68. " weight: math.unit(150, \"lb\"),",
  69. " name: \"${1/(.*)/${1:/capitalize}/}\",",
  70. " image: {",
  71. " source: \"./media/characters/$2/$1.svg\"",
  72. " }",
  73. "},"
  74. ],
  75. "description": "View"
  76. },
  77. "Size": {
  78. "prefix": "size",
  79. "body": [
  80. "{",
  81. " name: \"$1\",",
  82. " height: math.unit($2, \"$3\")",
  83. "},"
  84. ],
  85. "description": "Size"
  86. }
  87. }