Shortcut to implement methods for all enum values at once

Answered

Given I have an interface such as:

public interface FruitColor {
    public Color getColor(); }

 And an enum implementing such:

public enum Fruits implements FruitColor  {
    APPLE,
    APRICOT,
    AVOCADO
}

When I place the text cursor over any of the enum values and hit ALT+ENTER, I have the option to automatically create a stump method for the given enum value:

Is there any shortcut that allows me to create a stump methods for all enum values within one single step?

0
1 comment
Avatar
Yaroslav Bedrov

Hello,

"Multiple Selections" might be helpful in this case: https://blog.jetbrains.com/idea/2014/03/intellij-idea-13-1-rc-introduces-sublime-text-style-multiple-selections/

But there is a known issue that action will be executed only for the last line.

0

Please sign in to leave a comment.