snippet once "Include header once only guard" #ifndef ${1:`!p snip.rv = re.sub(r'[^A-Za-z0-9]+','_', snip.fn).upper()`} #define $1 ${VISUAL}${0} #endif // $1 endsnippet snippet for "for loop (for)" for (${2:i} = 0; $2 < ${1:count}; ${3:++$2}) { ${VISUAL}${0} } endsnippet snippet if "if .. (if)" if (${1:/* condition */}) { ${VISUAL}${0} } endsnippet snippet ife "if .. else (ife)" if (${1:/* condition */}) { ${2} } else { ${3:/* else */} } endsnippet snippet clangformat "Disable clang-format" // clang-format off ${VISUAL}${0} // clang-format on endsnippet