Live Template for Object creation

Is it possible to create a live template that expands

MyType

to

MyType myType = new MyType();

Regards
  Roger

3 comments
Comment actions Permalink

Hello Roger,

No. A live template must have a fixed abbreviation.

Note that you can use code completion to write this expression fairly quickly:
MyType = new

Is it possible to create a live template that expands

MyType

to

MyType myType = new MyType();


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

No, it's not possible to do that at the moment.

You can achieve that by a number of completions.

Denis

0
Comment actions Permalink

Hi thanks,

MyType Ctrl-Space = new Ctrl-Shift-Space is indeed good enough.

Regards
  Roger

0

Please sign in to leave a comment.