From 9139ee329677ca1488672862a34d4f067d63c71d Mon Sep 17 00:00:00 2001 From: Bokuan Li Date: Fri, 6 Mar 2026 15:45:31 -0500 Subject: [PATCH] Housekeeping for VS code. --- .vscode/project.code-snippets | 148 ++++++++++++++++++++++++++++++++++ .vscode/settings.json | 9 +++ .vscode/tasks.json | 44 ++++++++++ 3 files changed, 201 insertions(+) create mode 100644 .vscode/project.code-snippets create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/project.code-snippets b/.vscode/project.code-snippets new file mode 100644 index 0000000..be077d3 --- /dev/null +++ b/.vscode/project.code-snippets @@ -0,0 +1,148 @@ +{ + "Log to console": { + "scope": "latex", + "prefix": "log", + "body": ["console.info(\"Hello, ${1:World}!\")", "$0"], + "description": "Logs to console" + }, + "Theorem Block": { + "scope": "latex", + "prefix": "thm", + "body": [ + "\\begin{theorem}[$1]", + "\\label{theorem:$2}", + " $3", + "\\end{theorem}", + "$0" + ] + }, + "Definition Block": { + "scope": "latex", + "prefix": "def", + "body": [ + "\\begin{definition}[$1]", + "\\label{definition:$2}", + " $3", + "\\end{definition}", + "$0" + ] + }, + "Lemma Block": { + "scope": "latex", + "prefix": "lem", + "body": [ + "\\begin{lemma}", + "\\label{lemma:$1}", + " $2", + "\\end{lemma}", + "$0" + ] + }, + "Proposition Block": { + "scope": "latex", + "prefix": "prop", + "body": [ + "\\begin{proposition}", + "\\label{proposition:$1}", + " $2", + "\\end{proposition}", + "$0" + ] + }, + "Remark Block": { + "scope": "latex", + "prefix": "rem", + "body": [ + "\\begin{remark}", + "\\label{remark:$1}", + " $2", + "\\end{remark}", + "$0" + ] + }, + "Proof Block": { + "scope": "latex", + "prefix": "proof", + "body": ["\\begin{proof}", " $1", "\\end{proof}"] + }, + "Bold": { + "scope": "latex", + "prefix": "bf", + "body": ["\\textbf{$1}$0"] + }, + "Italic": { + "scope": "latex", + "prefix": "it", + "body": ["\\textit{$1}$0"] + }, + "Align": { + "scope": "latex", + "prefix": "align", + "body": ["\\begin{align*}", " $1", "\\end{align*}", "$0"] + }, + "Enumerate": { + "scope": "latex", + "prefix": "enum", + "body": ["\\begin{enumerate}", " \\item $1", "\\end{enumerate}", "$0"] + }, + "Section": { + "scope": "latex", + "prefix": "sec", + "body": ["\\section{$1}", "\\label{section:$2}", "", "$0"] + }, + "Subsection": { + "scope": "latex", + "prefix": "subsec", + "body": ["\\subsection{$1}", "\\label{subsection:$2}", "", "$0"] + }, + "Part": { + "scope": "latex", + "prefix": "part", + "body": ["\\part{$1}", "\\label{part:$2}", "", "$0"] + }, + "Chapter": { + "scope": "latex", + "prefix": "chapter", + "body": ["\\chapter{$1}", "\\label{chap:$2}", "", "$0"] + }, + "Citation After Block": { + "scope": "latex", + "prefix": "cite", + "body": ["[{{\\cite[$1]{$2}}}]$0"] + }, + "Mathcal": { + "scope": "latex", + "prefix": "cal", + "body": ["\\mathcal{$1}$0"] + }, + "Mathfrak": { + "scope": "latex", + "prefix": "fk", + "body": ["\\mathfrak{$1}$0"] + }, + "Dual Pairing": { + "scope": "latex", + "prefix": "dp", + "body": ["\\dpb{$1}{$2}$0"] + }, + "Dual Pairing, Default Bracket Size": { + "scope": "latex", + "prefix": "dpn", + "body": ["\\dpn{$1}{$2}$0"] + }, + "d-Dimensional Euclidean Space": { + "scope": "latex", + "prefix": "rd", + "body": ["\\real^d$0"] + }, + "Dyadic Rational Numbers": { + "scope": "latex", + "prefix": "dya", + "body": ["\\mathbb{D}"] + }, + "Rank": { + "scope": "latex", + "prefix": "rank", + "body": ["\\text{rk}"] + } +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..109a5a7 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,9 @@ +{ + "VsCodeTaskButtons.tasks": [ + { + "label": "Watch", + "task": "Watch" + } + ], + "latex.linting.enabled": false +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..5736d5f --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,44 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Build", + "type": "shell", + "command": "npx spec compile", + "windows": { + "options": { + "shell": { + "executable": "cmd.exe", + "args": ["/d", "/c"] + } + } + } + }, + { + "label": "Serve", + "type": "shell", + "command": "npx spec serve", + "windows": { + "options": { + "shell": { + "executable": "cmd.exe", + "args": ["/d", "/c"] + } + } + } + }, + { + "label": "Watch", + "type": "shell", + "command": "npx spec watch", + "windows": { + "options": { + "shell": { + "executable": "cmd.exe", + "args": ["/d", "/c"] + } + } + } + } + ] + } \ No newline at end of file