How to auto-import class name upon template expansion; AND make the closing HEREDOC keyword stick to the left side?

Here is my live template setup in PhpStorm:

There are two issues when I expand it:

 

1) The class name is not autoimported.

2) The heredoc closing token -- `SQL;` -- is not stick to the left side; I can't figure out how to let PhpStorm keep it stick to the left side. Note: when it is not stick to the beginning of the line, the meaning of how the literal is interpreted by PHP changes! So there must be a way to prevent PhpStorm from aligning the `SQL;` token with the rest of the code.

0

Unfortunately, neither is possible at the moment. The first one is WI-70302 and the second one is WI-19029.

0

WI-19029 was created 10 years ago... so chances of it being implemented are near zero. Any idea why it is such a low priority, same as being a non-existent issue?

0

Well, it's easy - your request for this is the first one since the issue was submitted - it's obviously not a highly demanded fix.

0

请先登录再写评论。