Skip to content

Instantly share code, notes, and snippets.

@alexstolr
Created June 27, 2019 13:03
Show Gist options
  • Save alexstolr/1465e89c3f9b2b26724aa4cdf6f3ace4 to your computer and use it in GitHub Desktop.
Save alexstolr/1465e89c3f9b2b26724aa4cdf6f3ace4 to your computer and use it in GitHub Desktop.
Intellij Live Templates with variables
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