Copy link to clipboard
Copied
How might I change the code templates Flash Builder 4 uses for creating getter and setter methods automatically? I can change templates for class generation, but can not find any getter and setter templates ...?
Copy link to clipboard
Copied
Hi Simmerl,
You can go to Preferences->Flash Builder -> Editors -> Code Templates ->ActionScript and edit the templates for getter and setter.
You can also type 'templates' in search text box under preferences and you would be directed to all code templates.
hope this helps.
Thanks
Anshul
Copy link to clipboard
Copied
Thanks for your reply. Actually I had found that setting, but it only consists of ActionScript-File, ActionScript-Class and ActionScript-Interface templates. That is what I am wondering about. Where are the other templates hidden?
Copy link to clipboard
Copied
check inside Editoren. can you tell your build number?
Copy link to clipboard
Copied
There is no template section inside. I could not find any in the other relevant submenus neither.
It’s Flash Builder 4.0.1 (Build 277662)
Copy link to clipboard
Copied
I think you are using generate getter/setter option?
You can not change template for that. Its auto generated.
Copy link to clipboard
Copied
So, is it deeply implemented into the Flash Builder source .classes? That would be a pity.
Is it at least possible to force Flash Builder to put opening { brackets inline with the function’s head?
public function get value() :String {
(...)
}
instead of
public function get value():String
{
(...)
}
Thanks for your reply.
Copy link to clipboard
Copied
As of now its not a template for method generation. you can log an enhancement for it.