Live template expansion misplaces cursor position

 

This is an issue I haven't had before with PhpStorm.

The live template is pretty simple and straightforward.

However, unless I specifically click on a value after it's been entered (see bellow gif) pressing Tab or Enter will position the cursor at a wrong position and stop progression to any further template variables.

Update

So this behavior is obviously triggered by auto-completion which pops up after typing get (PhpStorm offers methods with names which are actually part of the defined interface).

Solution(?)


Pressing Esc once to cancel auto-completion will continue the execution of live templates.

I guess I have encountered this issue before just didn't connect the dots.

As far as I am concerned this issue is resolved.

0
2 comments

Hi there,

It might be https://youtrack.jetbrains.com/issue/IDEABKL-6454 (at very least it sounds related)

0

Yes that's the one. The really annoying part is that there is no actual way to use code completion with live templates.

Even in the linked topic there is no real solution provided. Esc is not really a solution because it still doesn't allow usage of code completion.

0

Please sign in to leave a comment.