Reputation: 22512
Is it possible to setup IDEA to be able to quick insert // TODO
lines? For example keybinding or code completion pattern? I didn't find anything.
Upvotes: 5
Views: 7607
Reputation: 7926
Check out the Live Templates feature of IntelliJ. I hope it'll satisfy your needs.
Here's a tutorial video on how to create one.
Upvotes: 9
Reputation: 31
Live Template fixed my problem. I wanted to add a custom todo comment in intellij with my initials and date so i did this:
// TODO: $date$ [name] $todo$
Upvotes: 3
Reputation: 17940
Since 1.3 Android Studio ships with a set of live templates. One of which does exactly what you want.
In order to activate it, simply type todo
followed by a tab. Also works with fixme
and stopship
.
Upvotes: 10