Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Print TimestampNew to Visual Studio Code? Get it now.
Print Timestamp

Print Timestamp

snowcrash30

|
3,382 installs
| (2) | Free
print custom format timestamp with moment.js.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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"
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft