aboutsummaryrefslogtreecommitdiff
path: root/my_snippets
diff options
context:
space:
mode:
Diffstat (limited to 'my_snippets')
-rw-r--r--my_snippets/cpp.snippets21
1 files changed, 21 insertions, 0 deletions
diff --git a/my_snippets/cpp.snippets b/my_snippets/cpp.snippets
index 1de4172..458006e 100644
--- a/my_snippets/cpp.snippets
+++ b/my_snippets/cpp.snippets
@@ -135,3 +135,24 @@ endsnippet
snippet sol "solution" w
auto solution = Solution();
endsnippet
+
+snippet for "for loop" w
+for ($1; $2; $3){
+ $4
+}
+endsnippet
+
+snippet if "if condition" w
+if ($1){
+ $2
+}
+$0
+endsnippet
+
+snippet ifelse "if else condition"
+if ($1){
+ $2
+}else{
+
+}
+endsnippet