jsynowiec / vscode-insertdatestring

An extension for Visual Studio Code that provides a configurable command for inserting the current date and time
MIT License
63 stars 14 forks source link
date-formatting date-time datetime iso8601 timestamp visual-studio-code vscode vscode-extension

VSCode extension - Insert Date String

Sponsor Version Ratings Installs License

A plugin for Visual Studio Code that inserts the current date and/or time according to configured format. Available in VisualStudio Marketplace.

Notice Version 2.0 changed settings namespace from insertdatestring to insertDateString. Please update your userspace and workspace settings.

Installation

Open Command Palette by pressing F1, type ext install and then look for Insert Date String extension.

Usage

Following commands are available:

Available settings

// Date format to be used.
"insertDateString.format": "YYYY-MM-DD hh:mm:ss",
"insertDateString.formatDate": "YYYY-MM-DD",
"insertDateString.formatTime": "hh:mm:ss",

Syntax

Time zone designators

ISO-8601

Examples

License

Released under the MIT License.