Is there a shortcut for inserting PHP's object operator upon code completion in PhpStorm?

前端 未结 3 1211
-上瘾入骨i
-上瘾入骨i 2020-12-14 03:29

Let\'s say I want to type the following in PhpStorm:

$longObjectName->propertyName = \'some value\';

Seems innocent enough, no? If I sta

3条回答
  •  感动是毒
    2020-12-14 04:06

    1) As far as I remember this kind of completion was asked to be removed for PHP code (too unusual) .. but I cannot find such ticket right now (already spend over 20 mins on this) .. so I could be wrong (it was quite some time ago .. so possibly I'm confused with another code-completion improvement which was hard-configured to behave differently for PHP code only).

    Kind of related to "why it was disabled/what problems where there in the past":

    • http://youtrack.jetbrains.com/issue/WI-7013
    • http://youtrack.jetbrains.com/issue/IDEA-88179
    • http://youtrack.jetbrains.com/issue/IDEA-59718

    In any case: there is an open ticket to actually having it working: http://youtrack.jetbrains.com/issue/WI-21481 (only 1 vote so far).

    2) There is no "complete with ->" action available. Related ticket: http://youtrack.jetbrains.com/issue/WI-17658 (star/vote/comment to get notified on progress)

提交回复
热议问题