Skip to content

Commit 2a62d64

Browse files
committed
add some snippets for faster dev
1 parent 57e4d0b commit 2a62d64

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.vscode/settings.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"betterSnippets.customSnippets": [
3+
{
4+
"name": "tslib",
5+
"body": "import type tslib from 'typescript/lib/tsserverlibrary'",
6+
"when": {
7+
"locations": [
8+
"topLineStart"
9+
],
10+
}
11+
},
12+
{
13+
"name": "logKind",
14+
"body": "console.log(ts.SyntaxKind[${1:node}!.kind])",
15+
"when": {
16+
"locations": [
17+
"lineStart"
18+
],
19+
}
20+
}
21+
]
22+
}

0 commit comments

Comments
 (0)