From 369f2cd9f3574a9cbdcea9b6d97c792672850dc0 Mon Sep 17 00:00:00 2001 From: Dhruva Srinivas <66675022+carrotfarmer@users.noreply.github.com> Date: Sat, 20 Mar 2021 19:58:23 +0530 Subject: [PATCH] Add snippet for while loop --- snippets/rust.json | 9 +++++++++ 1 file changed, 9 insertions(+) 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": [