aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--my_snippets/cpp.snippets22
1 files changed, 22 insertions, 0 deletions
diff --git a/my_snippets/cpp.snippets b/my_snippets/cpp.snippets
index 1de4172..99c85bf 100644
--- a/my_snippets/cpp.snippets
+++ b/my_snippets/cpp.snippets
@@ -134,4 +134,26 @@ endsnippet
snippet sol "solution" w
auto solution = Solution();
+$0
+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