Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flex code region?

Is there a way in flex (Flash Builder 4) to make regions like in c#, to group a part of the code allowing us to collapse it and see through our project more easily?

In c# it's like:

#region example

// my functions I want to group

#endregion
like image 384
Biroka Avatar asked Apr 07 '10 14:04

Biroka


People also ask

What does Flex mean in code?

The flex property sets the flexible length on flexible items. Note: If the element is not a flexible item, the flex property has no effect.

What Flex 1 means?

If an element has flex: 1 , this means the size of all of the other elements will have the same width as their content, but the element with flex: 1 will have the remaining full space given to it.

Can Flex be decimal?

Flex ShrinkThe flex-shrink property is only specified as a single number or decimal number (0 - 9).

Why Flex-grow is not working?

Firstly, you can't apply a fixed width AND flex-grow. Secondly, flex-grow only works if the parent element has display:flex . In this case the section has display flex but the links do not and the flexgrow divs are children of the link…not the section.


2 Answers

Not that I have seen. I have only found comment and function collapsing.

like image 70
Jason Avatar answered Oct 16 '22 19:10

Jason


No, you basically have to use comments. I generally do something like

// *********************** THIS REGION IS FOR ... *************************
like image 21
Matt Dell Avatar answered Oct 16 '22 19:10

Matt Dell