Add "Create Class From Interface" in context menu when Interface is selected

Hello JetBrains Team,

I would like to request a feature that whenever Interface is selected upon opening context menu by right-clicking, there should be an option to "Create Class from Interface" directly in the context menu and implements automatically that particular selected Interface.

 

Thanks

0

Hi there,

Please provide a basic code sample that I can try here.

From what I see it's already available (since 2019.1.x version -- https://youtrack.jetbrains.com/issue/WI-44753)

Initial code (in some PHP file)

interface MyIinterface {}

It shows a New Class dialogue where you can edit file/class name etc.

The result of using defaults (class only part):

class MyIinterfaceImpl implements MyIinterface
{
}

 

0

请先登录再写评论。