|
1 | 1 | {
|
2 |
| - // Place your snippets for Quarto here. |
3 |
| - // Each snippet is defined under a snippet name and has a prefix, body and description. |
4 |
| - // The prefix is what is used to trigger the snippet and the body will be expanded and inserted. |
5 |
| - // Possible variables are: |
6 |
| - // |
7 |
| - // - $1 and $2 for tab stops, |
8 |
| - // - $0 for the final cursor position, and |
9 |
| - // - ${1:label}, ${2:another} for placeholders |
10 |
| - // |
11 |
| - // Placeholders with the same ids are connected. |
12 |
| - // |
13 |
| - // How to use the code snippets: |
14 |
| - // After you have set the above settings, a suggestion for one of the code snippets below will pop up automatically, when |
15 |
| - // you start writing the prefix. Press "Enter" or "Tab" to insert the code snippet. |
16 |
| - "Insert TODO formatting": { |
17 |
| - "scope": "quarto,markdown", |
18 |
| - "prefix": "TODO", |
19 |
| - "body": [ |
20 |
| - "<!-- TODO: ${0:Write text here} -->" |
21 |
| - ], |
22 |
| - "description": "Insert TODO formatting" |
23 |
| - }, |
24 |
| - "Insert bash formatted text": { |
25 |
| - "scope": "quarto,markdown", |
26 |
| - "prefix": "bash", |
27 |
| - "body": [ |
28 |
| - "``` bash", |
29 |
| - "${0:Write text here}", |
30 |
| - "```" |
31 |
| - ], |
32 |
| - "description": "Insert bash formatted text" |
33 |
| - }, |
34 |
| - "Insert YAML header for blogs": { |
35 |
| - "scope": "quarto,markdown", |
36 |
| - "prefix": "post_yaml", |
37 |
| - "body": [ |
38 |
| - "---", |
39 |
| - "title: \"\"", |
40 |
| - "description: \"Our reasons for ...\"", |
41 |
| - "author: \"\"", |
42 |
| - "date: last-modified", |
43 |
| - "categories:", |
44 |
| - " ${0:Type 'category_keywords' to insert categories}", |
45 |
| - "---" |
46 |
| - ], |
47 |
| - "description": "Insert YAML header for Quarto blog posts." |
48 |
| - }, |
49 |
| - "Insert a hidden comment section": { |
50 |
| - "scope": "quarto,markdown", |
51 |
| - "prefix": "hidden", |
52 |
| - "body": [ |
53 |
| - "::: content-hidden", |
54 |
| - "${0:Write comments here}", |
55 |
| - ":::" |
56 |
| - ], |
57 |
| - "description": "Insert a hidden content section" |
58 |
| - }, |
59 |
| - "Insert a 2 col table": { |
60 |
| - "scope": "quarto,markdown", |
61 |
| - "prefix": "tbl2", |
62 |
| - "body": [ |
63 |
| - "|${1:title} |${0:title} |", |
64 |
| - "| --- | --- |", |
65 |
| - "| | |" |
66 |
| - ], |
67 |
| - "description": "Insert a 2 col table" |
68 |
| - }, |
69 |
| - "Insert a 3 col table": { |
70 |
| - "scope": "quarto,markdown", |
71 |
| - "prefix": "tbl3", |
72 |
| - "body": [ |
73 |
| - "|${1:title} |${2:title} |${0:title} |", |
74 |
| - "| --- | --- | --- |", |
75 |
| - "| | | |" |
76 |
| - ], |
77 |
| - "description": "Insert a 3 col table" |
78 |
| - }, |
79 |
| - "Insert video": { |
80 |
| - "scope": "quarto,markdown", |
81 |
| - "prefix": "video", |
82 |
| - "body": [ |
83 |
| - "{{< video ${0:Insert link here} >}}" |
84 |
| - ], |
85 |
| - "description": "Insert video that will be shown" |
86 |
| - }, |
87 |
| - "Insert paneltab": { |
88 |
| - "scope": "quarto,markdown", |
89 |
| - "prefix": "paneltab", |
90 |
| - "body": [ |
91 |
| - "::: panel-tabset", |
92 |
| - "### ${0:Header}", |
93 |
| - "", |
94 |
| - "${1:Text body}", |
95 |
| - "", |
96 |
| - "### ${2:Header}", |
97 |
| - "", |
98 |
| - "${3:Text body}", |
99 |
| - ":::" |
100 |
| - ], |
101 |
| - "description": "Insert paneltab (including two tabs here). If you want additional tabs, just include more headers." |
102 |
| - }, |
103 |
| - // All our category words are included in this code snippet |
104 |
| - // The idea is that we can insert this section and then delete the words we aren't interested in |
105 |
| - // If words are missing then they can be added to the document, and then also added to the code snippet |
106 |
| - // Much the same way that words can be added to the spell-check extension. |
107 |
| - "Insert list of category words": { |
108 |
| - "scope": "quarto,markdown,yaml", |
109 |
| - "prefix": "decision_categories", |
110 |
| - "body": [ |
111 |
| - "- backend", |
112 |
| - "- code snippets", |
113 |
| - "- communicate", |
114 |
| - "- container", |
115 |
| - "- contribute", |
116 |
| - "- collaborate", |
117 |
| - "- database", |
118 |
| - "- deploy", |
119 |
| - "- dependencies", |
120 |
| - "- develop", |
121 |
| - "- document", |
122 |
| - "- front end", |
123 |
| - "- framework", |
124 |
| - "- git", |
125 |
| - "- install", |
126 |
| - "- license", |
127 |
| - "- manage", |
128 |
| - "- organize", |
129 |
| - "- standardise", |
130 |
| - "- style", |
131 |
| - "- web", |
132 |
| - "- workflow", |
133 |
| - "- write" |
134 |
| - ], |
135 |
| - "description": "Insert list of category words" |
136 |
| - } |
| 2 | + // Place your snippets for Quarto here. |
| 3 | + // Each snippet is defined under a snippet name and has a prefix, body and description. |
| 4 | + // The prefix is what is used to trigger the snippet and the body will be expanded and inserted. |
| 5 | + // Possible variables are: |
| 6 | + // |
| 7 | + // - $1 and $2 for tab stops, |
| 8 | + // - $0 for the final cursor position, and |
| 9 | + // - ${1:label}, ${2:another} for placeholders |
| 10 | + // |
| 11 | + // Placeholders with the same ids are connected. |
| 12 | + // |
| 13 | + // How to use the code snippets: |
| 14 | + // After you have set the above settings, a suggestion for one of the code snippets below will pop up automatically, when |
| 15 | + // you start writing the prefix. Press "Enter" or "Tab" to insert the code snippet. |
| 16 | + "Insert TODO formatting": { |
| 17 | + "scope": "quarto,markdown", |
| 18 | + "prefix": "TODO", |
| 19 | + "body": [ |
| 20 | + "<!-- TODO: ${0:Write text here} -->" |
| 21 | + ], |
| 22 | + "description": "Insert TODO formatting" |
| 23 | + }, |
| 24 | + "Insert bash formatted text": { |
| 25 | + "scope": "quarto,markdown", |
| 26 | + "prefix": "bash", |
| 27 | + "body": [ |
| 28 | + "``` bash", |
| 29 | + "${0:Write text here}", |
| 30 | + "```" |
| 31 | + ], |
| 32 | + "description": "Insert bash formatted text" |
| 33 | + }, |
| 34 | + "Insert YAML header for blogs": { |
| 35 | + "scope": "quarto,markdown", |
| 36 | + "prefix": "post_yaml", |
| 37 | + "body": [ |
| 38 | + "---", |
| 39 | + "title: \"\"", |
| 40 | + "description: \"Our reasons for ...\"", |
| 41 | + "author: \"\"", |
| 42 | + "date: last-modified", |
| 43 | + "categories:", |
| 44 | + " ${0:Type 'category_keywords' to insert categories}", |
| 45 | + "---" |
| 46 | + ], |
| 47 | + "description": "Insert YAML header for Quarto blog posts." |
| 48 | + }, |
| 49 | + "Insert a hidden comment section": { |
| 50 | + "scope": "quarto,markdown", |
| 51 | + "prefix": "hidden", |
| 52 | + "body": [ |
| 53 | + "::: content-hidden", |
| 54 | + "${0:Write comments here}", |
| 55 | + ":::" |
| 56 | + ], |
| 57 | + "description": "Insert a hidden content section" |
| 58 | + }, |
| 59 | + "Insert a 2 col table": { |
| 60 | + "scope": "quarto,markdown", |
| 61 | + "prefix": "tbl2", |
| 62 | + "body": [ |
| 63 | + "|${1:title} |${0:title} |", |
| 64 | + "| --- | --- |", |
| 65 | + "| | |" |
| 66 | + ], |
| 67 | + "description": "Insert a 2 col table" |
| 68 | + }, |
| 69 | + "Insert a 3 col table": { |
| 70 | + "scope": "quarto,markdown", |
| 71 | + "prefix": "tbl3", |
| 72 | + "body": [ |
| 73 | + "|${1:title} |${2:title} |${0:title} |", |
| 74 | + "| --- | --- | --- |", |
| 75 | + "| | | |" |
| 76 | + ], |
| 77 | + "description": "Insert a 3 col table" |
| 78 | + }, |
| 79 | + "Insert video": { |
| 80 | + "scope": "quarto,markdown", |
| 81 | + "prefix": "video", |
| 82 | + "body": [ |
| 83 | + "{{< video ${0:Insert link here} >}}" |
| 84 | + ], |
| 85 | + "description": "Insert video that will be shown" |
| 86 | + }, |
| 87 | + "Insert paneltab": { |
| 88 | + "scope": "quarto,markdown", |
| 89 | + "prefix": "paneltab", |
| 90 | + "body": [ |
| 91 | + "::: panel-tabset", |
| 92 | + "### ${0:Header}", |
| 93 | + "", |
| 94 | + "${1:Text body}", |
| 95 | + "", |
| 96 | + "### ${2:Header}", |
| 97 | + "", |
| 98 | + "${3:Text body}", |
| 99 | + ":::" |
| 100 | + ], |
| 101 | + "description": "Insert paneltab (including two tabs here). If you want additional tabs, just include more headers." |
| 102 | + }, |
| 103 | + // All our category words are included in this code snippet |
| 104 | + // The idea is that we can insert this section and then delete the words we aren't interested in |
| 105 | + // If words are missing then they can be added to the document, and then also added to the code snippet |
| 106 | + // Much the same way that words can be added to the spell-check extension. |
| 107 | + "Insert list of category words": { |
| 108 | + "scope": "quarto,markdown,yaml", |
| 109 | + "prefix": "decision_categories", |
| 110 | + "body": [ |
| 111 | + "- backend", |
| 112 | + "- code snippets", |
| 113 | + "- communicate", |
| 114 | + "- container", |
| 115 | + "- contribute", |
| 116 | + "- collaborate", |
| 117 | + "- database", |
| 118 | + "- deploy", |
| 119 | + "- dependencies", |
| 120 | + "- develop", |
| 121 | + "- document", |
| 122 | + "- front end", |
| 123 | + "- framework", |
| 124 | + "- git", |
| 125 | + "- install", |
| 126 | + "- license", |
| 127 | + "- manage", |
| 128 | + "- organise", |
| 129 | + "- standardise", |
| 130 | + "- style", |
| 131 | + "- web", |
| 132 | + "- workflow", |
| 133 | + "- write" |
| 134 | + ], |
| 135 | + "description": "Insert list of category words" |
| 136 | + } |
137 | 137 | }
|
0 commit comments