Insert current time in vs code using snippet

Cmd + shift + p -> configure user snippets -> new global snippets -> paste the following snippet -> save -> and type currenttime

Copy
{
	"current time": {
		"prefix": "currenttime",
		"body": [
			"$CURRENT_YEAR-$CURRENT_MONTH-${CURRENT_DATE}T$CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND.000Z"
		],
		"description": "Insert current time"
	}
}

Supported snippet variables can be found here. More about vs code snippets.

« (Ostrich algorithm)(Setting up github custom domain) »