diff --git a/.vscode/json.code-snippets b/.vscode/json.code-snippets new file mode 100644 index 0000000..d58068d --- /dev/null +++ b/.vscode/json.code-snippets @@ -0,0 +1,82 @@ +{ + // Place your snippets for Quarto here. + // Each snippet is defined under a snippet name and has a prefix, body and description. + // The prefix is what is used to trigger the snippet and the body will be expanded and inserted. + // Possible variables are: + // + // - $1 and $2 for tab stops, + // - $0 for the final cursor position, and + // - ${1:label}, ${2:another} for placeholders + // + // Placeholders with the same ids are connected. + // + // How to use the code snippets: + // After you have set the above settings, a suggestion for one of the code snippets below will pop up automatically, when + // you start writing the prefix. Press "Enter" or "Tab" to insert the code snippet. + "Insert TODO formatting": { + "scope": "quarto,markdown", + "prefix": "todo", + "body": [ + "" + ], + "description": "Insert TODO formatting" + }, + "R package name syntax": { + "scope": "quarto,markdown", + "prefix": "pkg", + "body": [ + "`{${0:Package}}`" + ], + "description": "The syntax used to display and link R packages to their websites." + }, + "Insert code exercise": { + "scope": "quarto,markdown", + "prefix": "exercise", + "body": [ + "## :technologist: Exercise: ${0:Title}", + "", + "> Time: ~${1:Minutes} minutes.", + "", + "${2:Text}", + ], + "description": "Insert a hands-on coding exercise section." + }, + "Insert discussion exercise": { + "scope": "quarto,markdown", + "prefix": "discussion", + "body": [ + "## :speech_balloon: Discussion activity: ~${0:Title}", + "", + "**Time: ~${1:Minutes}**", + "", + "${2:Text}", + ], + "description": "Insert a discussion activity section." + }, + "Insert reading task": { + "scope": "quarto,markdown", + "prefix": "reading", + "body": [ + "::: callout-note", + "## :book: Reading task: ~${0:Minutes}", + "", + "${1:Text body}", + "", + "{{< include ../includes/_sticky_up.qmd >}}", + ":::", + ], + "description": "Insert reading task section." + }, + "Insert instructor note": { + "scope": "quarto,markdown", + "prefix": "instructor_note", + "body": [ + "::: {.callout-note collapse=\"true\"}", + "## :teacher: Instructor note", + "", + "${0:Text body}", + ":::", + ], + "description": "Insert instructor note that is a Quarto callout note block." + } +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..2455726 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,33 @@ +{ + "files.autoSave": "onFocusChange", + "editor.tabSize": 2, + "editor.wordWrap": "off", + "editor.formatOnSave": true, + "git.autofetch": false, + "quarto.visualEditor.markdownWrap": "column", + "quarto.visualEditor.markdownWrapColumn": 72, + "editor.tabCompletion": "on", + "editor.snippetSuggestions": "inline", + "conventional-branch.type": [ + "build", // Changes that affect the build system or external dependencies + "ci", // Changes to our CI configuration files and scripts + "docs", // Documentation only changes + "feat", // A new feature + "fix", // A bug fix + "refactor", // A code change that neither fixes a bug nor adds a feature + "style", // Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) + "test", // Adding missing tests or correcting existing tests + "chore", // Misc things, like renaming or deleting files + ], + "conventional-branch.format": "{Type}/{Branch}", + "files.insertFinalNewline": true, + "cSpell.enableFiletypes": [ + "quarto" + ], + "cSpell.language": "en,en-GB", + "conventionalCommits.scopes": [ + "preamble", + "sessions", + "appendix" + ], +}