Thursday, June 26, 2008
FlashDevelop Request: Method Sets / Folding Triggers
Thursday, June 26, 2008
When I get into some lengthy classes (namely perhaps a document class), I have specific methods in relation to other classes or functionality. I usually try to group them inline in the class (one after the other). After a while I end up with blocks of code specific to something... and sometimes I need to spread some public methods down @ the bottom where I usually keep all my public methods, just for style reasons (and ease of location).
It would be nice to somehow group these methods so I could easily expand & collapse sets of methods with a single click. What I mean here is folding triggers.
This would require another Panel in FlashDevelop. By default it would be empty.
Right-click on a folding marker, and you could Create And Add To Nesting Set, or Add To Nesting Set, or Remove From Nesting Set.
The panel would show the labels you give the sets and perhaps optionally the methods contained in it (a tree mb). You could simply use a check box to the left of the Set title in the panel to expand/collapse the Set easily. The panel would allow you to rename the set labels, etc.
I think this would be a big time saver. Thoughts?
It would be nice to somehow group these methods so I could easily expand & collapse sets of methods with a single click. What I mean here is folding triggers.
This would require another Panel in FlashDevelop. By default it would be empty.
Right-click on a folding marker, and you could Create And Add To Nesting Set, or Add To Nesting Set, or Remove From Nesting Set.
The panel would show the labels you give the sets and perhaps optionally the methods contained in it (a tree mb). You could simply use a check box to the left of the Set title in the panel to expand/collapse the Set easily. The panel would allow you to rename the set labels, etc.
I think this would be a big time saver. Thoughts?
Comments:
There are currently 4 Comments:
-
Philippe said...“Hi man, there is a somewhat hidden FlashDevelop feature that may be of interest for you:
Enclose some code like this:
//{
This code can be folded
//}
Or better:
//{region The region name
This code can be folded and a new "Regions" information appear in the Outline panel!
//}”



