Feature request: expose date information as available variable(s) when creating snippets. #41631
Labels
feature-request
Request for new features or functionality
help wanted
Issues identified as good community contribution opportunities
on-testplan
release-notes
Release notes issues
snippets
Milestone
Edit: Sorry if this is a terrible issue...
The current list of variables available when writing a snippet can be found here.
Existing variables expose great contextual information - such as current file, directory, line number, word, etc. Development happens so fast that information can become outdated, so knowing when some custom snippets were inserted could be useful. For example, when creating files or adding comments.
My current use case is a snippet that inserts copyright headers.
The key binding
ctrl+cmd_c
inserts the header:It would help to include the date:
and could also apply to updates or comments:
Doing so could mean a simple variable like
TM_CURRENT_DATE
, but that may not work for non-US users who's date format is different i/e not month/day/year. Perhaps exposing the variables separately such asTM_CURRENT_YEAR
, etc or localization can help?I'd like to know if there is any interest in this. I know an extension could do this but it seems like overkill, but that could depend on potential use cases.
Thanks for any feedback.
The text was updated successfully, but these errors were encountered: