PHP tags being stripped out when pasting in 2019.1 EAP
Any one else seeing PHP tags being stripped out when pasting in the 2019.1 EAP?
Doesn't happen under all circumstances but definitely happens when pasting within HTML between braces? For example:
<?php
if ($foo) { ?>
<h1><?= $foo; ?></h1>
<?php
} ?>
Cutting "<?= $foo; ?>" from the above and pasting it back in exactly the same place, pastes only "$foo" and removes the tags. This is the same for long form "<?php echo $foo; ?>"
请先登录再写评论。
Confirmed on PhpStorm 2019.1 EAP.
However, it is working fine on 2018.3.3.
Looks like, it happens during paste as <?= $foo; ?> is copied correctly to clipboard.
Just tried 2019.1 EAP #2 and the problem still occurs so had to roll back to 2018.3.3 again.
Can someone confirm if this is a bug or some weird, new expected behaviour? And if it is, how do I turn it off?!
I cannot see anything on the issue tracker either.
Scott, that's a new setting at File | Settings | Editor | General | Smart Keys > scroll to bottom (PHP) > Remove PHP Open/Close tags...
Update: that appears to be a bug. It would be great if you could submit this to our tracker at https://youtrack.jetbrains.com/newIssue
I have reported it on YouTrack, please feel free to follow:
https://youtrack.jetbrains.com/issue/WI-45180
Thanks guys!
Quick Update: I tried changing the setting that Dmitry mentioned. It threw an exception (which I have submitted) when applied but it does now seem to work as expected.