Skip to content

Commit 3ca8dbd

Browse files
add reverse for
1 parent 586341c commit 3ca8dbd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

snippets/general.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,16 @@
178178
],
179179
"description": "Creates a for loop"
180180
},
181+
"-> reverse for loop": {
182+
"prefix": "forr",
183+
"body": [
184+
"for (int ${1:i} = ${2:length}; ${1:i} >= ${3:0} ; ${1:i}--)",
185+
"{",
186+
"\t$0",
187+
"}"
188+
],
189+
"description": "Creates a reverse for loop"
190+
},
181191
"-> foreach statement": {
182192
"prefix": "foreach",
183193
"body": [

0 commit comments

Comments
 (0)