vscode: add datetime snippet

This commit is contained in:
John Bowdre 2024-01-17 21:12:10 -06:00
parent c8f2453a70
commit 64edab11a2

View file

@ -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";