Auto-complete custom snippets in Eclipse

I was asked how our developers can easily add predefined comments in sourcecode, because our SonarQube-instance will scan for some kinds of review-comments in the project-sources.
This can be done very easily with Eclipse’s so called templates:

Just go to „Windows“ >> „Preferences“ >> „Java“ >> „Editor“ >> „Templates“

preferences

and create tow new templates:

template_technical
template_functional

Then save your changes an open a Java-file in editor. Now you’re able to easily auto-complete your typing in the same manner as if you use the built-in templates of Eclipse’s Java-editor:

auto-complete

That’s all you have to do. Now your Sonar can crawl the sources to find different types of review-comments.