Javadocs Made Easier Using IntelliJ’s Live Templates

Writing Javadocs can be tedious. To make it easier, I use IntelliJ’s Live Templates. These are the Live Templates I use the most:

Abbreviation Template Text
@c {@code $VAL$}$END$
@l {@link $VAL$}$END$
@t {@code true}
@f {@code false}
@n {@code null}

To use these Templates in IntelliJ IDEA 12, copy-paste the following into your $HOME$/.IdeaIC12/config/templates/user.xml file, inside the tags (another option would have been to import a settings jar; unfortunately, this blows away previous Live Templates):

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s