less copy protection, more size visualization
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

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