Created
June 27, 2019 13:03
-
-
Save alexstolr/1465e89c3f9b2b26724aa4cdf6f3ace4 to your computer and use it in GitHub Desktop.
Intellij Live Templates with variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Go to setting --> Editor --> Live templates --> '+' --> add Live template | |
int the template text paste the following: //TODO $date$ $user$: | |
Abbreviation: customtodo | |
Description: Insert TODO comment with the current date and user name | |
Applicable in: Everywhere | |
Press on Edit variables: | |
Add the following: | |
Name: date, Expressions: date() | |
Name: user, Expressions: user() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment