vscode: add date snippet

This commit is contained in:
John Bowdre 2024-05-28 13:39:23 -05:00
parent 6254e6df8e
commit 11f7130789

View file

@ -73,6 +73,11 @@
}
];
globalSnippets = {
"Insert datestamp" = {
prefix = ["date"];
body = ["\"\${CURRENT_YEAR}-\${CURRENT_MONTH}-\${CURRENT_DATE}\""];
description = "Insert date";
};
"Insert timestamp" = {
prefix = ["datetime"];
body = ["\"\${CURRENT_YEAR}-\${CURRENT_MONTH}-\${CURRENT_DATE}T\${CURRENT_HOUR}:\${CURRENT_MINUTE}:\${CURRENT_SECOND}Z\""];