Skip to content

Instantly share code, notes, and snippets.

@joshuaavalon
Created October 6, 2023 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshuaavalon/651b8eedc5d51b8b4ce55426b24b8fbb to your computer and use it in GitHub Desktop.
Save joshuaavalon/651b8eedc5d51b8b4ce55426b24b8fbb to your computer and use it in GitHub Desktop.
VSCode user snippets
{
"uuid": {
"prefix": "uuid",
"body": "${UUID}",
"description": "Generate UUID"
},
"now-date": {
"prefix": "now-date",
"body": "$CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE",
"description": "Generate current date YYYY-MM-DD"
},
"now-time": {
"prefix": "now-time",
"body": "$CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND",
"description": "Generate current time hh:mm:ss"
},
"now-iso8601": {
"prefix": "now-iso8601",
"body": "${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}T${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND}${CURRENT_TIMEZONE_OFFSET}",
"description": "Generate current date time ISO8601"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment