Inserting sectionsPrefix | Environment | SPA + TAB | part | SPC + TAB | chapter | SSE + TAB | section | SSS + TAB | subsection | SS2 + TAB | subsubsection | SPG + TAB | paragraph | SSP + TAB | subparagraph |
Modifying sectionsShortcut | Altern. | Action | CTRL+ALT+[ | CTRL+L, [ | Promote sectioning | CTRL+ALT+] | CTRL+L, ] | Demote sectioning |
Activate alternative shortcuts: Set latex-workshop.bind.altKeymap.enabled to true
Inserting environmentsPrefix | Environment | BEQ + TAB | equation | BSEQ + TAB | equation* | BAL + TAB | align | BSAL + TAB | align* | BIT + TAB | itemize | BEN + TAB | enumerate | BSPL + TAB | split | BCAS + TAB | cases | BFR + TAB | frame | BFI + TAB | figure |
Other: Type \begin + TAB and enter the environment identifier OR type \environment + TAB.
Surround existing text with \begin{} / \end{} environment: Select text, then enter CTRL + SHIFT + P, enter surround and select Surround/wrap selection with \begin{}...\end{} from the Command Palette
Environment commandsShortcut | Action | CTRL+L, CTRL+ENTER | Insert newline + \item |
| | Font commands (textmode)Prefix | Shortcut | Font command | FNO | CTRL+L, CTRL+N | \textnormal | FRM | CTRL+L, CTRL+R | \textrm | FEM | CTRL+L, CTRL+E | \emph | FSF | | \textsf | FTT | CTRL+L, CTRL+T | \texttt | FIT | CTRL+L, CTRL+I | \textit | FSL | CTRL+L, CTRL+S | \textsl | FSC | CTRL+L, CTRL+C | \textsc | FUL | CTRL+L, CTRL+u | \underline | FUC | | \uppercase | FLC | | \lowercase | FBF | CTRL+L, CTRL+B | \textbf | FSS | CTRL+L, CTRL+6 | \textsuperscript | FBS | CTRL+L, CTRL+- | \textsubscript |
Surround existing text with command: Mark text, then CTRL+L, CTRL+W and select the command from the popup.
Font commands (mathmode)Prefix | Shortcut | Font command | MRM | CTRL+M, CTRL+R | \mathrm | MBF | CTLR+M, CTRL+B | \mathbf | MBB | CTLR+M, SHIFT+CTRL+B | \mathbb | MCA | CTRL+M, CTRL+C | \mathcal | MIT | CTRL+M, CTRL+I | \mathit | MTT | CTRL+M, CTRL+T | \mathtt | | CTRL+M,CTRL+S | \mathsf |
| | Insert mathematical snippetsPrefix | Command | @( | \left( \right) | @{ | \left{ \right} | @[ | \left[ \right] | __ | _{ } | ** | ^{ } | ... | \dots | @. | \cdot | @8 | \infty | @6 | \partial | @/ | \frac{ }{ } | @% | \frac{ }{ } | @^ | \hat{ } | @_ | \bar{ } | @@ | \circ | @0 | ^\circ | @; | \dot{ } | @:: | \ddot{ } | @= | \equiv | @* | \times | @< | \leq | @> | \geq | @2 | \sqrt{ } | @I | \int_{ }^{ } | @| | \Big | | @\ | \setminus | @+ | \bigcup | @- | \bigcap | @, | \nonumber |
DebuggingShortcut | Action | CTRL + SHIFT + M | Show/ hide all errors | F8 | Go to next error | SHIFT + F8 | Go to previous error |
Magic strings% !TEX root = filename.tex | Sets filename.tex as the master file. |
Insert these commands into your document if needed.
| | Insert greek lettersPrefix | Letter | @a | \alpha | @b | \beta | @c | \chi | @d | \delta | @e | \epsilon | @ve | \varepsilon | @f | \phi | @vf | \varphi | @g | \gamma | @h | \eta | @i | \iota | @k | \kappa | @l | \lambda | @m | \mu | @n | \nu | @p | \pi | @q | \theta | @vq | \vartheta | @r | \rho | @s | \sigma | @vs | \varsigma | @t | \tau | @u | \upsilon | @o | \omega | @x | \xi | @y | \psi | @z | \zeta | @D | \Delta | @F | \Phi | @G | \Gamma | @Q | \Theta | @L | \Lambda | @X | \Xi | @Y | \Psi | @S | \Sigma | @U | \Upsilon | @W | \Omega |
|