diff --git a/snippets/rust.json b/snippets/rust.json index 5bf22acf..a9068301 100644 --- a/snippets/rust.json +++ b/snippets/rust.json @@ -15,6 +15,15 @@ ], "description": "Insert for loop" }, + "while": { + "prefix": "while", + "body": [ + "while ${1:statement} {", + "\t$0", + "}" + ], + "description": "Insert while loop" + }, "macro_rules": { "prefix": "macro_rules", "body": [