开发者

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开发者_StackOverflow?

In c# it's like:

#region example

// my functions I want to group

#endregion


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


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

// *********************** THIS REGION IS FOR ... *************************


Actually, there is a way you can do this, at least in Flex Builder 4.5. I've had success using multiple <fx:Script> tags. You can add a <!--Region Title--> comment above the tag, and just collapse the entire tag. Not exactly as good as proper code regions, but it works pretty well.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜