Copy link to clipboard
Copied
Hi, all;
I know how to change most of the templates so that they go from the default "uncuddled" brackets to "cuddled"
i.e.
public function notCuddled():void
{
//TODO
}
vs.
public function cuddled():void {
//yay! no wasted space
}
However, I have not found the template used for the constructor for a generated Class, so I get:
package my.package {
public class MyLovelyCuddledClass {
public function MyLovelyCuddledClass()
{//wasted line that I have to manually fix
}
}
}
I love the new productivity enhamcements in FB 4.5, and they are so great that little nitpicks like this stand out. Can anyone tell me where I can find the template that is used for this, so I can code to the fullest potential of the tool?
TIA;
Amy
Copy link to clipboard
Copied
Hi Amy,
You can customize 'New class' generation under Preferences->Editors->Flash
Builder->FileTemplates->Action Script->New ActionScript class.
Currently there are no template variables available constructors. But you
can customize it as following,
$
{
${import_declaration}
$ {
public function ${class_name}() {
}
}
}
Copy link to clipboard
Copied
Thanks, I'll try that