Insert Time Stamp
Quick insertion of unix-shell-like time stamp into Visual Studio Code editor
Example
###### Sun Sep 18 15:29:29 IDT 2016
Here is how it looks after markdown processing:
Sun Sep 18 15:29:29 IDT 2016
There are 2 options to install the extention
via VSCode UI
- launch VS Code Quick Open (Ctrl+P)
- execute the following command
ext install inserttimestamp
- hit green "Install" button next to Insert Time Stamp item in VSCode sidebar.
via system command line
- in your terminal run the following command
code --install-extension zvlad.inserttimestamp
Uninstall
There are 2 options to uninstall the extention
via VSCode UI
- open
Extensions tab in the VS Code sidebar
- hit "Uninstall" next to Insert Time Stamp item.
via system command line
- in your terminal run the following command
code --uninstall-extension zvlad.inserttimestamp
Default shortcut is ctrl + f5
in your Code/User/keybindings.json file add the following:
{
"key": "ctrl+f5", // specify shortcut you like here
"command": "inserttimestamp.perform",
"when": "editorTextFocus"
}
Currently supported timestamp format: ###### Www Mmm dd h:mm:ss Tz yyyy
where:
###### — prefix (as is: "######")
Www — week day name (3 letters)
Mmm — month name (3 letters)
dd — day in month
h — hours (24h format)
mm — minutes
ss — seconds
Tz — Time zone abbreviation (3 letters, I am not sure if it is true for any time zone)
yyyy — year (4 digits)
License
Extension licensed under MIT
Author
Vlad Zamskoi
Thanks
To Nick Roach for the great icon.