New PhpStorm 9: constant advance. Postfix code completion for PHP, Inline Debugger, and more.
Hi, Habr!
I hasten to report on the latest release of PhpStorm 9 - a new version of IDE for PHP development from JetBrains.
Progress will not take long, because in PhpStorm 9 we have improved the possibilities for code editing and debugging, deepened our understanding of the code, implemented additional means of increasing productivity, and also completed support for remote development.
Work with the PHP language and editor
Deep understanding of the code
All subsystems related to PHP have been updated in this version. The most important improvements include:
Refactoring Introduce Parameter
Extended PHP Type Inference
Support for persistent language inserts
New inspections and intention actions
')
Postfix Code Completion for PHP
In PhpStorm 9, we have added postfix code autocompletion. With it, you can replace one expression (which you have already entered) with another, depending on the postfix being added. The function is useful precisely if you have already entered something and now you would like to change this expression without returning and changing the code.
For example, if the postfix “.if” is added to the logical expression, it will automatically be wrapped by the if branch, and the cursor will move to the operator's body.
Thus, postfix completion saves a lot of time moving the cursor in the opposite direction.
Partial support for PHP 7
The release of PHP 7 is not far off, so we added partial support for PHP 7 at the level of language version selection and the corresponding PHP interpreter, as well as support for return type hints.
Thus, the added support allows you to use PHP 7 in new projects now (before PHP 7 support, using return type hints caused errors and red code in the IDE). Full PHP 7 support in PhpStorm is expected soon.
More convenient debugging
Inline Debugger for PHP
Thanks to the inline debugger, all variable data received from the debugger is displayed directly in the editor. Thus, all variable values are seamlessly integrated into the editor interface.
Using the Inline Debugger, the values of variables can be seen right in the source code, alongside their uses, which greatly simplifies the debugging process. No need to hover the mouse on a variable, nor switch to the variables panel in the debugger window!
Debugging process
The debugging process becomes even simpler and painless with this release. Setting up the PHP environment used to be a big problem. We are confident that new features will help overcome these obstacles due to:
improved debugger configuration validation;
opening the corresponding php.ini for editing from the settings;
import server settings from deployment settings;
and many other improvements.
Remote development
Remote edit
Version 9 adds one of the most requested features in the history of PhpStorm - Remote Edit. Open single files directly from a remote server (FTP, SFTP, FTPS, etc.) and edit them in the IDE without saving / loading to a local project.
To start editing a file from a remote server, simply select Edit Remote File in the context menu or double-click the file.
Run remote tools via remote PHP interpreter
Support for remote PHP interpreters (appeared in PhpStorm 8) allows you to run applications and tools in an environment similar to the production environment. You can easily use the virtualized environment launched with Vagrant along with all the tools. In PhpStorm 9, the so-called remote development becomes a reality thanks to the support of running PHP Code Sniffer and Mess Detector through remote PHP interpreters.
Improvements in interaction with frameworks and third-party tools
In addition to our efforts to support the latest technologies and tools, the ecosystem of third-party plug-ins for PhpStorm is developing steadily. Take a look at the plugin repository - there appeared a lot of plugins for various frameworks and tools.
Front End Development Tools
PhpStorm includes all the features of WebStorm (including all the features of WebStorm version 10 , some in the form of free plugins).
PhpStorm 9 completely redesigned JavaScript support and added support for the following web technologies:
application dependency diagrams;
tracing languages transpiled into JavaScript;
profiling Node.js applications using V8;
simultaneous tag editing:
IntelliJ platform
This release borrows a lot of features and capabilities from the IntelliJ Platform:
Distraction Free Mode:
diff viewer with one way view:
improvements in integration with version control systems;
updated database tools;
HiDPI support for Windows and Linux;
updated tabbed editor view, and more.
Where to read more?
Additional information about PhpStorm 9 can be found on our other resources. Or you can watch a short video :