mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-12-22 04:12:18 +00:00
vscode: add date snippet
This commit is contained in:
parent
6254e6df8e
commit
11f7130789
1 changed files with 5 additions and 0 deletions
|
@ -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\""];
|
||||
|
|
Loading…
Reference in a new issue