i'm new to Flash Builder.
while attempting to set my own format for my ActionScript 3.0 code, i found Preferences > Java > Code Style > Formatter
. i then set the braces and indent format so my code will automate like this when it's written:
i realize that ActionScript 3.0 and Java are completely different languages, but their syntax is nearly identical so i assumed that the Eclipse based Flash Builder would treat my AS3 as Java. it's exactly what i'm looking for since it allows me to change the default code format:
private function defaultFormat():void
{
//code
}
into my own preferred format:
private function myFormat():void
{
//code
}
unfortunately, it doesn't seem to work. while writing my ActionScript 3.0 code it continues to auto format with the default setting.
how can i set my own format on my ActionScript 3.0 code?
[EDIT] i just tried using the Flex Formatter Eclipse plugin, but (while it's latest version is only 0.8.6) it doesn't offer the ability to choose customized indenting of braces - plus it really seemed to slow down writing code in FB.
Preferences > Flash Builder > Indentation > ActionScript
or
Preferences > Flash Builder > Editors > ActionScript Code
Unfortunately there's no Code Style for Flash Builder 4.5. You can use the above perferences to tweak some minor options but not the same amount of control as with Java.