From 8a934f901090c23bc58d416335cb9780a271ad2b Mon Sep 17 00:00:00 2001 From: c24-tj <144437372+c24-tj@users.noreply.github.com> Date: Mon, 2 Dec 2024 03:18:04 +0100 Subject: [PATCH] Add enum snippet for php (#511) --- snippets/php/php.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/snippets/php/php.json b/snippets/php/php.json index 88e365e7..10125055 100644 --- a/snippets/php/php.json +++ b/snippets/php/php.json @@ -251,5 +251,16 @@ "prefix": "vd", "body": ["var_dump($0);"], "description": "var_dump" + }, + "enum …": { + "prefix": "enum", + "body": [ + "enum ${1:EnumName}", + "{", + "\tcase $0;", + "}", + "" + ], + "description": "Enum definition" } }