Show Menu
Cheatography

LaTeX Workshop (Visual Studio Code) Keyboard Shortcuts (DRAFT) by

Important and frequently used keyboard shortcuts for the Visual Studio Code **LaTeX Workshop** extension.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Inserting sections

Prefix
Enviro­nment
SPA + TAB
part
SPC + TAB
chapter
SSE + TAB
section
SSS + TAB
subsection
SS2 + TAB
subsub­section
SPG + TAB
paragraph
SSP + TAB
subpar­agraph

Modifying sections

Shortcut
Altern.
Action
CTRL+ALT+[
CTRL+L, [
Promote sectioning
CTRL+ALT+]
CTRL+L, ]
Demote sectioning
Activate altern­ative shortcuts: Set
latex-­wor­ksh­op.b­in­d.a­ltK­eym­ap.e­nabled
to
true

Inserting enviro­nments

Prefix
Enviro­nment
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 enviro­nment identifier OR type \envir­onment + TAB.

Surround existing text with \begin{} / \end{} enviro­nment: Select text, then enter CTRL + SHIFT + P, enter surround and select Surrou­nd/wrap selection with \begin­{}...­\end{} from the Command Palette

Enviro­nment commands

Shortcut
Action
CTRL+L, CTRL+ENTER
Insert newline + \item
 

Font commands (textmode)

Prefix
Shortcut
Font command
FNO
CTRL+L, CTRL+N
\textn­ormal
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
\texts­upe­rscript
FBS
CTRL+L, CTRL+-
\texts­ubs­cript
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 mathem­atical snippets

Prefix
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

Debugging

Shortcut
Action
CTRL + SHIFT + M
Show/ hide all errors
F8
Go to next error
SHIFT + F8
Go to previous error

Magic strings

% !TEX root = filena­me.tex
Sets filena­me.tex as the master file.
Insert these commands into your document if needed.
 

Insert greek letters

Prefix
Letter
@a
\alpha
@b
\beta
@c
\chi
@d
\delta
@e
\epsilon
@ve
\varep­silon
@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