![]() |
| Region Code Folding |
| While I'm at it ... |
|
... I'd also like to reiterate the need for array declarations to be collapsible, as well, like multiline strings.
|
||||||||||||
|
|
|||||||||||||
| Code Region folding |
|
Hi there,
Any news with this feature? I would also appreciate a Visual Studio like #region #endregion folding option to be able to define my own code regions. Thx. |
||||||||||||
|
|
|||||||||||||
|
I agree, i would love to see that feature: #region [<name>], #endregion ...
|
||||||||||||
|
|
|||||||||||||
|
Confirm.
Regions can really simplify navigation in "Code navigator" window. This feature is very useful in Visual Studio (#region name; #endregion). Regions feature specs: - Regions can be collapsed in editor window; - Functions can be grouped by regions in "Code navigator" window; - Regions must have names and "begin" an "end" (opt) definitions (such as #regionand #endregion). |
||||||||||||
|
|
|||||||||||||
| regions already exist in php and they are foldable in PhpED |
|
From documentation on php.net:
http://www.php.net/manual/en/control-structures.intro.php
In other words, the following code is valid PHP code:
The curly braces define a statement group similar to when used with if, else, foreach, etc. It does not create a new variable scope, but can be used to format/organize code in some arbitrary way. Statement groups can contain almost anything (assuming nest conventions are followed). Some things that can't be used inside statement blocks are: namespace, use, (global) const, and __halt_compiler(). Anything in curly braces will have a fold mark in PhpED. That includes statement groups which then function just as one would hope/expect. One feature that would be nice is if PhpED showed the comment immediately after the starting brace while the group is folded. One can even make a shortcut to create a foldable statement group using code snippets in PhpED. For example, the following template could be created and assigned to the keyboard combination Ctrl+Alt+B
Thereafter one could highlight a block of code then hit Ctrl+Alt+B to wrap the highlighted statements in curly braces, creating a statement group. |
||||||||||||||||||
|
|
|||||||||||||||||||
| And still more on Regions |
|
I've just changed from using phpEdit for about 10yrs. The developer has gone out of business.
However, the latest version had some very nice features, one is //region******** foobar ******** code or anything //endregion Everything between /region and endregion is folded, only the //region******** foobar ******** and //endregion render |
||||||||||||
|
|
|||||||||||||
| Region Code Folding |
|
||
|
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by


RSS2 Feed