January 17

Could quick actions be added to make it easier when implementing an interface to generate method signatures for the required methods for you? Similar to how The Light Bulb does it for C# and for Java in IntelliJ. So when you hover over the error that the methods have not be defined it shows a quick fix button which would generate the method stubs for you.

3 days ago

On Friday, 17 January 2025 at 12:52:40 UTC, Joshua Petersen wrote:

>

Could quick actions be added to make it easier when implementing an interface to generate method signatures for the required methods for you? Similar to how The Light Bulb does it for C# and for Java in IntelliJ. So when you hover over the error that the methods have not be defined it shows a quick fix button which would generate the method stubs for you.

Yes, that's possible. I think what you want in Intellij is to use com.intellij.codeInspection.LocalQuickFixOnPsiElement

Some existing quick fixes that have been implemented in the Intellij D plugin are here: https://github.com/intellij-dlanguage/intellij-dlanguage/tree/develop/src/main/kotlin/io/github/intellij/dlanguage/quickfix