How to make such refactor?
I have method declaration:
public function update(card:CardVO):void {
}
I want to declare class field with same name as method parameter and initiate it with parameter value:
private var card:CardVO;
public function update(card:CardVO):void {
this.card = card;
}
How can I make such refactor by one key click?
Please sign in to leave a comment.
just type this.card = card; inside method block and use intention to create "card" field
No. Im too lazy to type )
In FlashDevelop IDE you can press Ctr+Shift+1
and IDE automaticly generate two lines of code