Improves customizable highlighting for PHPDoc blocks
Improves customizable highlighting for PHPDoc blocks.
Features
- Customizable auto-insertion of short tags - PhpStorm 2019.3 introduced the ability to automatically insert
<?php
as soon as you type<?
, which can help you deprecate short tags: But because short tags are still a part of PHP, this turned out to be a bit excessive. That is why this version adds several enhancements to the feature.- First, you can now opt out completely. In the PhpStorm preferences, go to Editor | General | Smart Keys | PHP and clear the Auto-insert ‘
<?php’ tag after typing ‘<?
’ checkbox: - Second, PhpStorm will filter out the extra
php
if you happen to type it reflexively, so<?phpphp
should no longer occur. And, to remove thephp
part, you only have to press Backspace once:
- First, you can now opt out completely. In the PhpStorm preferences, go to Editor | General | Smart Keys | PHP and clear the Auto-insert ‘
- Customizable highlighting for PHPDoc blocks - Another feature that required a more tailored approach is colored highlighting for PHPDoc blocks, which was introduced in 2019.3. It turns out that change was a bit too radical for some, so now it’s possible to customize the colors used. In the PhpStorm preferences, go to Editor | Color Scheme | PHP | PHPDoc, clear the Inherit values from checkbox on the elements you’d like to customize, and then set the desired colors.