Reputation: 364
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:
However, I can't do that in IntelliJ IDEA:
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
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:
Upvotes: 2
Reputation: 121
using alt + enter --> the latest version of intelliJ has an option of "implement abstract class"
Upvotes: 0
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.
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