Housekeeping for VS code.

This commit is contained in:
Bokuan Li
2026-03-06 15:45:31 -05:00
parent 139f5b8a99
commit 9139ee3296
3 changed files with 201 additions and 0 deletions

148
.vscode/project.code-snippets vendored Normal file
View File

@@ -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}"]
}
}

9
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,9 @@
{
"VsCodeTaskButtons.tasks": [
{
"label": "Watch",
"task": "Watch"
}
],
"latex.linting.enabled": false
}

44
.vscode/tasks.json vendored Normal file
View File

@@ -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"]
}
}
}
}
]
}