Skip to content

Commit 62ae2fa

Browse files
committed
added code-snippets to help dev
1 parent 0fd90d7 commit 62ae2fa

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
// Place your global 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+
19+
"Create Snippet": {
20+
"scope": "json",
21+
"prefix": "snip",
22+
"body": [
23+
"\"$1\": {",
24+
"\t\"scope\": \"gcode\",",
25+
"\t\"prefix\": \"$2\",",
26+
"\t\"body\": [",
27+
"\t\t\"$0\"",
28+
"\t],",
29+
"\t\"description\": \"$3\"",
30+
"}"
31+
],
32+
"description": "Create Snippet"
33+
}
34+
}

0 commit comments

Comments
 (0)