I want to create a live template to wrap a code before the dot.
Example:
userDao.getUser().asst
assertThat(userDao.getUser())
So basically I want to create a live template with functionality similar to sout, try, listOf etc.
Can you suggest how to create it?
You can use Postfix Completion for that.

The result will look like this:

Not exactly what you need but as an alternative;
template text, write asst(or a for shorter version) in the abbreviation input field.assertThat($SELECTION$)$END$
userDao.getUser() and hit cmd + alt + j , you will have Select Template pop-up. When you then hit a it will automatically surround it with assertThat.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With