Completion for '->' pair

Hi. There is an autocompletion of -> pair for $this keyword:

we type $this-  and ide add '>' for us and show members of $this.

Is it possible to enable such feature for all object types? (that can't be affected of minus operator)

I think it's possible for ide to know about operator overloading of each conrete variable to auto-add '>' after - (minus) of not.

Thanks. :)

3 comments
Comment actions Permalink

There's a feature request for that, please leave your vote: https://youtrack.jetbrains.com/issue/WI-28351
I'll also add a link to this thread in a private comment there.

0
Comment actions Permalink

Hi there,

No .. https://youtrack.jetbrains.com/issue/WI-28351

... but you may use Ctrl+Dot in code completion popup -- it will auto-complete current entry and will add -> at the end.

Available in next 2018.3 major version only. RC version is already available: https://blog.jetbrains.com/phpstorm/2018/11/phpstorm-2018-3-release-candidate-is-available/

0
Comment actions Permalink

Thanks! Hope feature request will be accepted. :)

0

Please sign in to leave a comment.