I have not used Flash Builder in a while, and I'm having a hard time remembering where the option is to set it to automatically use cuddled braces, instead of starting the braces on a new line (IMO, this is a waste of space). I remember last time it took me a long time to find it as, well, but for the life of me I can't remember where this setting is. Please help me .
Hi, Amy -
I'm not sure if I've understood the question fully. But, I think, you can do it by editing code templates. For example, open the Preferences dialog box, and select Flash Builder > Editors > Code Templates > ActionScript. Then select, say, the function template, and click Edit. In the Edit Template dialog box, you can edit the template to use cuddled braces.
Let me know if this is not what you were looking for.
Flash Builder Community Help & Learning
Adobe Systems Incorporated
No, what I want is that I can use Ctrl-Shift-F and it will format new Classes that FB creates for me to have cuddled braces. There doesn't seem to be a template exposed for that, and when a Class implements an interface, that can be a lot of braces to go back and fix by hand. I found this answer here http://forums.adobe.com/message/3850505 (that I had forgotten about) that suggests that there should be a "New Actionscript Class" template, but no such template exists in my installation. It's like FB is pulling this out of thin air, and there's no way to tell it how you want it.
Europe, Middle East and Africa