Quantcast
Channel: JetBrains Developer Community : All Content - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5481

AS3 refactoring: convert local var to instance var

$
0
0

this one should be pretty straigtforward but I cant seem to find it:

 

given that I start out like this:

 

public function someFunction():void {

          var someVar:String = "whatever";

}

 

lots of times I need to promote someVar to the instance level:

 

private var _someVar:String;

public function someFunction():void {

          _someVar = "whatever";

}

 

is there a refactor action for that? this is different from the create getters/setters action, in that I dont need those

 

thanks


Viewing all articles
Browse latest Browse all 5481

Trending Articles