Is there a way to insert the current date/time when editing?
I want to insert the current time or date in my comment.
Is there a way to do that?
I could imagine a live template 'today' that used an
expression getCurrentDate() or something. Can I define
my own expressions for use in live templates?
/Mikael
请先登录再写评论。
I am also looking for a method of doing just that. I have a live template defined for generating some javadoc and I'd like to have created on: $CurrentDate$
]]> work. If you have a solution, please post it back.If you are OK with a modal editor and are using the IdeaVim plugin, you can use !!date from command mode to insert the date.