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

add a custom rule command? -- Insert DateTime with custom rule #13

Closed xianghongai closed 5 years ago

xianghongai commented 5 years ago

Insert DateTime with custom rule:

The format YYYY-MM-DD-hh:mm:ss is required, and at the same time, the format -YYYYMMDD-hhmmss is required, so need a custom rule. :)

jsynowiec commented 5 years ago

You can use

Insert Formatted DateTime (⇧+⌘+⌥+I on OS X, Ctrl+Alt+Shift+I on Windows and Linux) - Prompt user for format and insert formatted date and/or time at the cursor position.

to insert custom, ad hoc formats.

xianghongai commented 5 years ago

insert formatted datetime is perfect if it remembers the last format.