A set of math snippets for Visual Studio Code.
Provides autocomplete for most LaTeX math symbols including:
- Common constructs (
\frac
,\sqrt
, ...) - Greek letters (
\alpha
,\beta
,\gamma
, ...) - Variable-sized operators (
\sum
,\prod
,\int
, ...) - Arrows (
\mapsto
,\Rightarrow
,\Leftrightarrow
, ...) - Roman names (
\lim
,\log
,\sin
,\cos
, ...) - Decorations (
\vec
,\overline
,\hat
, ...) - Logic and sets (
\exists
,\forall
,\emptyset
,\in
, ...) - Fences and delimiters (
\langle
,\lfloor
,\lceil
, ...)
These snippets are accessible without the leading backslash character \
.
In addition to the standard LaTeX names, the following aliases and shortcuts are provided :
Alias | Resolves to | Description |
---|---|---|
ii |
$...$ |
Creates inline math formula with dollar delimiters |
id |
$\displaystyle ...$ |
Creates inline displaystyle math formula with dollar delimiters |
dd |
$$ ... $$ |
Creates display math formula with dollar delimiters |
II |
\(...\) |
Creates inline math formula with bracket delimiters |
DD |
\[\] |
Creates inline display math formula with bracket delimiters |
abs |
\leftǀ... \rightǀ |
Absolute value |
norm |
\left\ǀ ... \right\ǀ |
Vector norm |
lrparentheses |
\left( ... \right) |
Matching parentheses |
lrbrackets |
\left[ ... \right] |
Matching brackets |
bb |
\\mathbb{...} |
Math BB font |
bf |
\mathbf{...} |
Math BF font |
The full list of supported snippets can be found here.
There are several VS Code extensions available from the Marketplace, for example Markdown+Math. It is thus possible to use the built-in Markdown preview pane within VS Code.
Another way is to use KaTeX directly by placing the starter template code on top of your Markdown file.
MIT