Variable phpdoc completion

Answered

I cannot find solution, so i hope that here i find someone who knows.

I have this code:

 

If I hit spacebar it will looks like this:

if I hit enter it will looks like this:

But i need this:

It is almost same as when i hit spacebar, but when i hit spacebar there are two spaces after array instead of one.

How to do that or fix that?

0
2 comments

Hi there,

Right now you can just press DEL key once to delete unwanted space symbol.

That space is for optional Description part.

Another thing is -- the same inline @var can be used for typehint local variables where name of the variable will be inserted (as it's required there) at that extra space symbol (e.g. /** @var array $myVar */).

Current behaviour is hardcoded (that is not something that is configurable via GUI or config files).

This ticket is possible the one where current behaviour was introduced: https://youtrack.jetbrains.com/issue/WI-17762

Related tickets (other aspects):

If none of the above matches yours -- file new ticket.

P.S. For me, since I almost always provide field description, current behaviour is desired.

0
Avatar
Permanently deleted user

Oh. Thank you.

So it is issue. :/

0

Please sign in to leave a comment.