From 25284ff24e47f6a55ba114cb45fade980ce9efc7 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Tue, 6 Jan 2015 13:06:35 -0200 Subject: [PATCH] adjusted the if/ifelse snippets to follow the same standard as the other commands --- UltiSnips/c.snippets | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 UltiSnips/c.snippets diff --git a/UltiSnips/c.snippets b/UltiSnips/c.snippets new file mode 100644 index 0000000..82f1274 --- /dev/null +++ b/UltiSnips/c.snippets @@ -0,0 +1,13 @@ +snippet if "if" +if (${1:/* condition */}) { + ${VISUAL}${0} +} +endsnippet + +snippet ife "if .. else" +if (${1:/* condition */}) { + ${2} +} else { + ${3:/* else */} +} +endsnippet