Great suggestions. I’ve added both for the next release.
When you select interfaces for a class, the picker now has a Generate missing members checkbox, enabled by default. Studio adds the required methods, properties and event definitions when you confirm. You can clear the checkbox if you prefer to add them yourself.
You can also generate missing members afterwards using:
- Edit > Generate Missing Interface Members
- Generate Missing Interface Members when right-clicking a class in the Solution Navigator
- The Command Palette
That also covers adding new members to an interface later. Existing implementations, including inherited ones, are preserved, and generic interface types are handled. Each generation is undoable in one step.
Generated method and property bodies throw a “Not implemented” exception until you fill them in.
You can track it here: Generate missing interface members in Studio.