mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-11-22 17:32:19 +00:00
vscode: add datetime snippet
This commit is contained in:
parent
c8f2453a70
commit
64edab11a2
1 changed files with 7 additions and 0 deletions
|
@ -68,6 +68,13 @@
|
||||||
sha256 = "sha256-MKiCZ4Vu+0HS2Kl5+60cWnOtb3udyEriwc+qb/7qgUg=";
|
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 = [
|
keybindings = [
|
||||||
{
|
{
|
||||||
key = "backspace";
|
key = "backspace";
|
||||||
|
|
Loading…
Reference in a new issue