From 64edab11a2d05636a557be26a0bc95f694ea6c57 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Wed, 17 Jan 2024 21:12:10 -0600 Subject: [PATCH] vscode: add datetime snippet --- home/features/desktop/vscode.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/home/features/desktop/vscode.nix b/home/features/desktop/vscode.nix index ea5ea8b..b6abad1 100644 --- a/home/features/desktop/vscode.nix +++ b/home/features/desktop/vscode.nix @@ -68,6 +68,13 @@ sha256 = "sha256-MKiCZ4Vu+0HS2Kl5+60cWnOtb3udyEriwc+qb/7qgUg="; } ]; + globalSnippets = { + "Insert timestamp" = { + prefix = ["datetime"]; + body = ["\"\${CURRENT_YEAR}-\${CURRENT_MONTH}-\${CURRENT_DATE}T\${CURRENT_HOUR}:\${CURRENT_MINUTE}:\${CURRENT_SECOND}Z\""]; + description = "Insert date and time"; + }; + }; keybindings = [ { key = "backspace";