Mippy
Mippy

Reputation: 364

Could I select super class when creating a new class in IntelliJ IDEA 2016 like in Eclipse?

As you guys know, when we create a new class in Eclipse, we can choose super class what we should extend at the same time like followed sreenshot:

In Eclipse:

eclipse


However, I can't do that in IntelliJ IDEA:

IntelliJ


Is there any menu or wizard to do this?
By the way, I'm using Eclipse MARS and IntelliJ IDEA 2016

Upvotes: 5

Views: 8652

Answers (3)

Suresh S
Suresh S

Reputation: 21

Still I haven't found any way to select a super class while creating a sub-class in IntelliJ IDEA. But I found that option in Android Studio which looks similar to the way it is done in Eclipse:

enter image description here

Upvotes: 2

NinaNeu
NinaNeu

Reputation: 121

using alt + enter --> the latest version of intelliJ has an option of "implement abstract class"

enter image description here

Upvotes: 0

Makoto
Makoto

Reputation: 106390

The feature you want is called Create subclass.

Use Option + Return (or ALT + Enter on PC) on the class name, and you will have the opportunity to create a subclass of your currently selected class.

enter image description here

You may also choose to invoke this through the "Find All Actions" dialog, which is CTRL+SHIFT+A on PC and is likely similar on Mac.

Upvotes: 12

Related Questions