Print Timestamp
A command extension for vscode that print timestamp to the current cursor position.
Installation
Install from Marketplace
.. or press F1 to open Command Palette and type ext install , then search for Print Timestamp.
Usage
Press F1 and run the command Print Timestamp .(Sorry, there is no keyboard shortcuts. please configure your shortcut with Keyboard Shortcut editor.)
You can configure printed timestamp using moment.js format in vscode workspace settings.
Parameter |
Default Value |
Description |
printtimestamp.timestampformat |
"YYYY-MM-DD HH:mm:ss" |
printed format by Print Timestamp command. |
printtimestamp.dateformat |
"YYYY-MM-DD" |
printed format by Print Timestamp (Date Only) command. |
printtimestamp.timeformat |
"HH:mm:ss" |
printed format by Print Timestamp (Time Only) command. |
printtimestamp.locale |
null |
locale name that set to moment.locale() . |
printtimestamp.localtime |
true |
print local timezone(true ) or UTC(false ). |
printtimestamp.cursor |
null |
move cursor after printing. null (hold selection), "before" , "after" |
| |