Surround template and caret position

Hi

This is with IDEA 9805 but applies to earlier versions.

A simple question: I have a simple surround template which applies to a String and wraps it with a call to String.format(). The template is just
String.format($SELECTION$)

The annoying thing is that in using this template the caret is always positioned at the beginning of the text ("|String"), whereas I want it to appear after $SELECTION$. I tried adding $SELECTION$$END$ but that doesn't parse. Documentation is scarce--is there a way to do this?


Thanks
Patrick

Please sign in to leave a comment.