Simple extension for Visual Studio Code that inserts the current time, date or both in the editor.
- Insert current time/date
- Ctrl+Shift+P and search for "Insert current..."
- Keybinding for time Ctrl+Alt+1.
- Keybinding for date Ctrl+Alt+2.
- Keybinding for both Ctrl+Alt+3.
None!
There are 4 configurable properties:
timeinserter.dateFormat: Date format (using Unicode Technical Standard #35) [default: 'yyyy-MM-dd']timeinserter.timeFormat: Time format (using Unicode Technical Standard #35) [default: 'HH:mm:ss']timeinserter.dateTimeFormat: Date and time format (using Unicode Technical Standard #35). If empty, date and time will be separated by a space [default: '']timeinserter.pre: String to add before the time/date [default: '']timeinserter.post: String to add before the time/date [default: '']
You tell me
- Initial release.
- Add date inserter (ctrl+alt+2)
- Add date + time inserter (ctrl+alt+3)
- Use date-fns format