minor problem with actionscript code formatting

object = new Object();

Alt+Enter -> "Create variable object" creates the following lines

var object:Object;
object = new Object();

==========================
Is it possible to get one line???

var object:Object = new Object();

Thanks!

2 comments
Comment actions Permalink

Type only following:

new Object()

and invoke 'Introduce variable' refactoring (Ctrl+Alt+V on Windows). You'll get

var object:Object = new Object();

with 'live' variable name. Press Enter or Esc to accept suggested variable name or just type other name.

0
Comment actions Permalink

Alexander, thanks a lot, it works.

0

Please sign in to leave a comment.