Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Choose position of cursor after a live template

In IntelliJ IDEA, I have defined a live template like this:

@Inject private void postInject() {   //I want the cursor to be placed here after the execution of the live template. } 

Is there a way to tell IntelliJ to place the cursor inside of the method body after expanding the live template?

like image 502
Arnaud Denoyelle Avatar asked Jun 17 '14 10:06

Arnaud Denoyelle


1 Answers

Sure. Just put the special $END$ variable to that position.

Help documentation: https://www.jetbrains.com/help/idea/template-variables.html#pdtv

like image 189
Peter Gromov Avatar answered Sep 29 '22 20:09

Peter Gromov