Accelerator key for date stamp

Here's an open question. I am working on a lot of mssql files and I like to have a date stamp on each one. This means that I can know just by looking at the source of the stored procedure, whether it is up to date or not.

I would like to have a shortcut autocomplete key that if I type say, d-tab-tab, I get the current date printed in the file. And yes, I'm so lazy. :)

So the question is:

  • Is there a way to get around this problem completely?
  • If not, how would you suggest solving it?

Smart ideas are welcome.

0


source to share


3 answers


Are these files in source control? If so, see if the source vendor allows templates in the source file to be filled in with time and date upon registration.



+1


source


If you are using Notepad (and that is perhaps the only argument for using it) then F5 does the trick.



0


source


How about using version control for your files and including automatic keyword expansion.

Using the CVS Keyword Extension , you can put $Date: $

in a file and it will be replaced with the date of the last check. There is no need for typing or updating, this is "auto magic".

0


source







All Articles