Toad World® Forums

Comment with timestamp in editor

Is there a possibility to insert a comment with timestamp into source code by just typing a shortcut?

When doing changes in the source code I use to document this at place by a comment line including my initials, actual date and a short description.

I searched in code assist and code templates but I didn’t find any mechanism to automatically insert a timestamp by for example replacing a special keyword or macro expression

This is not possible, but it’s a good idea. There are code templates that could support this with not much work. Code Templates having the “Advanced” flag set will use to indicate caret position and to paste clipboard contents at that position. I don’t see why we couldn’t also add that could support custom date format like <timestamp:mm/dd/yyyy hh:nn:ss> or similar.

I’ll log this to look at once we get into the next version full swing.

Michael

Thank you Michael, you exactly explained what I’m looking for.

So I’m looking forward to the next version of TOAD for Oracle where this feature will be implemented :wink:

This is done for next beta and will be in 12.11.

FYI, ShortKeys (https://www.shortkeys.com/), extern application,can do that.
I use it a lot all around mine work…very customizable.