Ryan Burnham
Ryan Burnham

Reputation: 2669

Intellij Type autocompletion when initializing an object

Is it possible to set up Intellij to auto complete a type when you new up an object. for example i type

String name = new

If i hit CTRL + SHIFT + Space it adds the type like

String name = new String();

I'd like it to do this automatically when i hit space after the new keyword

Upvotes: 0

Views: 1129

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 402493

Consider using Introduce Variable refactoring instead as described in this answer.

Upvotes: 2

Related Questions