SteveMyres Posted January 30, 2014 Share Posted January 30, 2014 While loops, for loops, if-else blocks, etc., are collapsible in the editor. I'd like to be able to designate contiguous ranges of sequence lines that form a logical unit as a collapsible region. Also, a Preference item for opening sequences with collapsible regions collapsed or expanded, and right-click menu or toolbar items when in sequence for Expand All and Collapse All. Thanks! Link to comment Share on other sites More sharing options...
AzeoTech Posted January 30, 2014 Share Posted January 30, 2014 Usually while, for, if/else blocks and functions form logical units on their own. Are you talking outside this?Remembering the collapsing is a good idea. There are several other places where remembering settings would be good (alarm table for example) Link to comment Share on other sites More sharing options...
SteveMyres Posted January 30, 2014 Author Share Posted January 30, 2014 Yes -- sometimes you might wish to consider a certain block of lines (that might contain but not overlap another automatically or user-defined collapsible zone) as a black box, and collapse it, even though it isn't contained in one of the loop structures automatically made collapsible by the editor currently. Link to comment Share on other sites More sharing options...
AzeoTech Posted January 31, 2014 Share Posted January 31, 2014 Usually if you have a black box chunk of code you should consider moving it into its own function. Also, you can always block code by using a non-affecting block structure, such as: if(1) endif or even try/catch Link to comment Share on other sites More sharing options...
SteveMyres Posted January 31, 2014 Author Share Posted January 31, 2014 Sometimes I do modularize such blocks into their own functions but there are times where I'd prefer not to and this request was with respect to those instances. Using existing collapsible instructions as a container is a slick idea! I like that I'd still put the user-defined collapsible regions on the feature request list just because it would be clean, but at a low priority. Using the other collapsible structures is a good idea. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.