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!
Fix code problems The most powerful tool in IntelliJ IDEA that operates by means of Alt+Enter is code inspections. Pressing this shortcut on a highlighted code element in the editor opens a list of possible fixes from which you can select the one that works best.
From the main menu, select Edit | Find | Find in Files Ctrl+Shift+F . In the search field, type your search string. Alternatively, in the editor, highlight the string you want to find and press Ctrl+Shift+F . IntelliJ IDEA places the highlighted string into the search field.
Ctrl Ctrl. We can run anything from anywhere by pressing the Ctrl key twice. No matter where we are in the IDE or which file is open, if we double tap Ctrl the Run Anything window opens.
Navigate to Implementation We can use ⌥⌘B on macOS, or Ctrl+Alt+B on Windows and Linux to navigate to one of four implementations. If there is only one implementation, IntelliJ IDEA will take you straight there without the additional prompt.
You can create your own:
$date$
. Now the "Edit Variables" button should be enabled.$date$
to use the expression date()
.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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With