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

Added variable substitution commands #18

Open miss-programgamer opened 3 years ago

miss-programgamer commented 3 years ago

I added a few commands that mirror the existing ones but return the date strings directly instead of inserting them into the currently focused editor. This is mainly useful for variable expansions in task or launch files. I personally use this to add a timestamp to the name of build archives for one of my games! I documented their usage in the README.

I also fixed a bug where canceling the date format prompt would still insert the date string.