How to insert a datetime string in VSCode

in «tip» by Michael Beard
Tags: , , , ,

How to insert current date time in vscode?

User Jakub Synowiec created a VSCode extension that does this. Here is a link (in stackoverflow) for it [VSCode extension - insert date string](https://stackoverflow.com/questions/38780057/how-to-insert-current-date-time-in-vscode#:~:text=Press%20%E2%87%A7%20%2B%20%E2%8C%98%20%2B%20I%20(,Insert%20DateTime%20then%20press%20Enter%20.) -- just look for his answer. At the creation time, his was the top answer.

Here is the general format for the default format -- 2021-01-26 17:27:49, which is pretty close to what I need. Don't know if I'll change it or not.

The short-cut is shiftcommandI (or for my Windows keyboard on the Mac, it's shiftWindowsKeyI, but ...). It should do the trick.

The extension to install is Insert Date String and the current version is 2.3.0.

Anyway, good stuff.