Issue Details (XML | Word | Printable)

Key: FDT-2036
Type: Improvement Improvement
Status: Confirmed Confirmed
Priority: Minor Minor
Assignee: FDT Team
Reporter: Panel
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FDT

Custom (user defined) Code Folding Regions

Created: 05/May/11 06:41 PM   Updated: 22/Jun/12 06:42 PM
Component/s: Editor (Deprecated), Font Library Creator (Deprecated)
Affects Version/s: FDT 4.5.3
Fix Version/s: FDT
Security Level: public

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive custom_folding_example.zip (1,35 MB)


Review Type: Review by Product Owner


 Description  « Hide
FDT already have sth similar - autocolapsing of comments,
Please add floading feature for custom regions of code like in Visual Studio. It would be also nice to save floading settings (colapsed\expanded) and restored after reopen the file.

//#region abc
CODE
//#endregion

When region is collapsed only region name is displayed



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Panel added a comment - 14/Aug/11 08:15 AM
Since there is no progress on the issue I would like to give real live example of how much useful this feature may be.

Lets say you have TestSuite containing Tests for few pagkages like in as3core lib ex.
// utils
ts.addTestSuite( StringUtilTest );
ts.addTestSuite( NumberFormatterTest );
ts.addTestSuite( ArrayUtilTest );
ts.addTestSuite( DateUtilTest );
ts.addTestSuite( IntUtilTest );
ts.addTestSuite( XMLUtilTest );
ts.addTestSuite( DictionaryUtilTest );

// crypto
ts.addTestSuite( HMACSHA1Test );
ts.addTestSuite( HMACMD5Test );
ts.addTestSuite( MD5Test );
ts.addTestSuite( SHA1Test );
ts.addTestSuite( SHA224Test );
ts.addTestSuite( SHA256Test );
ts.addTestSuite( WSSEUsernameTokenTest );

//images
ts.addTestSuite( JPGEncoderTest );
ts.addTestSuite( PNGEncoderTest );
...

How having regions feature would allow to see only 3 collapsed groups instead of many lines


Alan K (Deprecated) added a comment - 15/Aug/11 07:26 PM
Any chance you have a link to a screenshot or video of this in action?

Panel added a comment - 16/Aug/11 10:30 AM
Sure Alan. Here you are
(the cursor is invisible, but I am using small plus sign in the left to expand/colapse the regions)
https://www.sugarsync.com/pf/D400585_8957884_48574

Alan K (Deprecated) added a comment - 16/Aug/11 03:55 PM
I've zipped up this video and attached it for archive reasons.

Alan K (Deprecated) added a comment - 16/Aug/11 03:59 PM - edited
Note to dev

Developer would use a particular syntax to define the start/stop areas.


Panel added a comment - 16/Aug/11 05:43 PM
If by 'Not to dev' you are saying it's not possible to develop because of syntax....
I agree that we cannot change Actionscript syntax, but on the other hand comments may be used.
//#region abc
code
//#endregion

I understand it's a little bit of hack, but I believe this is the way 'regions floating' works with eclipse + java.


Alan K (Deprecated) added a comment - 16/Aug/11 06:10 PM
Nah...that was a typo. It's supposed to say 'Note To dev' That's a note for me to remember when we look at the issue again. Sometimes we write 'hint to dev'.

Panel added a comment - 16/Aug/11 06:11 PM
ahh this