Skip to content

Commit

Permalink
chore: add vs code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-nicolaos committed Apr 8, 2022
1 parent bf755eb commit 15573e4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.vscode/**/*
!.vscode/extensions.json
!.vscode/sw-trivia.code-snippets

/target
33 changes: 33 additions & 0 deletions .vscode/sw-trivia.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
// Place your sw-trivia workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
"Add Trivia Question": {
"scope": "javascript,typescript",
"prefix": ":q",
"body": [
"{",
" question: \"$1\",",
" correctAnswer: \"$2\",",
" wrongAnswers: [\"$3\", \"$4\", \"$5\"],",
" source,",
"}",
],
},
"Add TV/Comic Trivia Question": {
"scope": "javascript,typescript",
"prefix": ":qq",
"body": [
"{",
" question: \"$1\",",
" correctAnswer: \"$2\",",
" wrongAnswers: [\"$3\", \"$4\", \"$5\"],",
" source: genSource(\"$6\"),",
"}",
],
}
}

0 comments on commit 15573e4

Please sign in to comment.