'PhpStorm define collapsible code regions (Visual Studio style Regions) possible?
In Visual Studio you can use #region
and #endregion
to wrap developer defined blocks of code.
I would love to see this functionality in PhpStorm, it is an ideal way to organise a large source file (for example lots of interface implementations).
Is it possible to make PhpStorm behave this way?
Solution 1:[1]
I was looking for this too, and find that it's available for use now in version 4 EAP.
Working example:
// region Private members
private $db;
private $cache;
// endregion
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Brendan |