I’d like to add date/time for comments so that I can know when I did those changes, and I am doing that by hand now because I could not find a shortcut. What a great plus for IntelliJ IDEA to have a shortcut for that!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can create your own:
$date$. Now the "Edit Variables" button should be enabled.$date$to use the expressiondate().Now when you type "date" and use the default completion gesture (Tab), it will replace "date" with the current date.
You can also make use of the
time()expression. Note that it doesn’t seem like IntelliJ has great support for specifying the format of this date.