I want to create a live template to wrap a code before the dot.
Example:
- I enter
userDao.getUser().asst
- Press enter
- Code is wrapped and the result is:
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: