We are happy to announce that the new version of PHP Tools for Visual Studio - 1.18 - is available. The update brings a lot of new features, improvements and fixes
Please visit downloads page to download and for more information about the improvements we are introducing.
PHP provides programmers with HereDoc (and NowDoc) syntax allowing to specify long pieces of text within the PHP code. The latest version of PHP Tools makes it easier to work with HereDoc by making its content background grey and by allowing to collapse the heredoc block. Since HereDoc is frequently used for fragments of XML or HTML code, PHP Editor now colorizes XML/HTML within HereDoc.
Visual Studio 2015 comes with new HTML Editor. The editor fixes a lot of issues. Also there are plenty of plugins extending the new HTML Editor, like new Web Essentials for Visual Studio 2015. Since this update, PHP Editor has been completely rewritten to take advantage of the new HTML Editor allowing a combination of PHP, HTML, JS, CSS and 3rd party plugins within PHP files. This finally fixes a lot of prehistoric issues we've been hearing from our users.
Peek to Definition,
Find All References,
Refactor | Rename and other entries.
Together with this improvement, it is finally possible to change the color of PHP operators in the editor. There is more coming in the future, so stay tuned.
PHPDoc comments get better support in the editor. First of all, class names, variables and tags are colored, which is handy, looks beter and better represents the PHPDoc syntax itself. In addition to colors, we've added full IntelliSense for PHPDoc tags and type parameters. This includes both code completion and tool tips.
One of the frequently requested features is the outlining of all code blocks like if, switch, for etc. Since this version, it is possible to enable the outlining for generic code blocks. To do so, go to
Tools | Options | Text Editor | PHP | Advanced and check
Enable outlining of code blocks.
Visual Studio 2013 introduced shortcuts for moving whole lines up and down using Alt+Up and Alt+Down. The feature makes it easier to refactor your code, without the need to cut & paste.
It is even better that the PHP Editor can now format the line according to its new position. The code just fits into its new position and new context as you would cut, paste and format it manually. The functionality has to be enabled in
Tools | Options | Text Editor | PHP | Formatting, so give it a try!