Skip to main content

C++ Snippets for VS Code

List of Selected Snippets

ShortcutTitle
aattribute
bbraces
cclass declaration
catchcatch
ccconst class
ccaconst cast
ccocopy constructor declaration
ceconstexpr keyword
cefconstexpr function declaration
cevconstexpr variable
cfconst function declaration
coconstructor declaration
copconditional operator
cstconst struct
cvconst variable
ddefault keyword
dcadynamic cast
dedestructor declaration
dodo-while
dtdecltype keyword
eelse
ecoexplicit constructor declaration
eifelse-if
enenum declaration
encenum class declaration
enstenum struct declaration
ffunction declaration
frfor
frrfor (reversed)
frrbfor (range-based)
iinterface
ifif
ifceif constexpr
ilinline keyword
ilcvinline const variable
ilvinline variable
inainline namespace
llambda expression
mcmulti-line comment
mcomove constructor declaration
nanamespace
npnullptr keyword
ppd#define
ppe#error
ppi#include
ppif#if
ppifd#ifdef
ppife#if #else
ppifnd#ifndef
ppl#line
ppr#pragma region
ppu#using
ppud#undef
pvfpure virtual function
rreturn keyword
rcareinterpret cast
sastatic assert
scastatic cast
scefstatic constexpr function declaration
scevstatic constexpr variable
scfstatic const function declaration
scvstatic const variable
sfstatic function declaration
silcvstatic inline const variable
silvstatic inline variable
sosizeof keyword
ststruct declaration
svstatic variable
swswitch
ttemplate
t2template with 2 parameters
tctry-catch
tdtypedef declaration
uusing declaration
ununion
unausing namespace
vvariable
vaarray variable
vfvirtual function declaration
wewhile