Overriding and generating constructors in Kotlin
Answered
Why there is no selection to generate constructor of super class? ViewGroup has other 3 constructor:
```
public ViewGroup(Context context, AttributeSet attrs) {
this(context, attrs, 0);
}
public ViewGroup(Context context, AttributeSet attrs, int defStyleAttr) {
this(context, attrs, defStyleAttr, 0);
}
public ViewGroup(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
initViewGroup();
initFromAttributes(context, attrs, defStyleAttr, defStyleRes);
}
```

Please sign in to leave a comment.
Wonder why on IDE forum there is no code formatting option
Please use https://discuss.kotlinlang.org/ for any questions related to Kotlin, it supports the code formatting as well.
But that's not about Kotlin code formatting, it's about behaviour of IDE. For the same Java class IDE allows to generate constructor:
I'm trying to understand whether is a bug or by some reason Intellij Ultimate doesn't support Kotlin constructors generation.
It's a feature of the Kotlin IDE plug-in, so it belongs to Kotlin forum.
> But that's not about Kotlin code formatting
My comment was about code formatting in the forum, not in the IDE.
Ok, thanks. Created topic there: https://discuss.kotlinlang.org/t/kotlin-constructors-generation-vs-java-constructors-generation/16723