Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature-Request] New options for interface auto-implementation #2392

Closed
Veruthas opened this issue Jun 26, 2018 · 4 comments
Closed

[Feature-Request] New options for interface auto-implementation #2392

Veruthas opened this issue Jun 26, 2018 · 4 comments

Comments

@Veruthas
Copy link

Veruthas commented Jun 26, 2018

I don't believe these options exist yet, but when auto-implementing interfaces (using the hover over interface and selecting from menu), would it be possible to have settings to:

  • Choose whether to add implemented methods with body or lambda ({} or =>)
  • Choose whether to add all methods with methods etc., or on bottom of class (potentially within a #region)
@DustinCampbell
Copy link
Member

@rchande: should this be tracked on the roslyn repo?

@rchande
Copy link

rchande commented Jun 13, 2019

Filed an issue against Roslyn for the second point. C# extension would need to surface the first point.

@geirsagberg
Copy link

Also would be great if properties from interfaces were implemented as auto-properties, not getters and setters that throw new NotImplementedException(), as I suspect auto-properties will be correct in 99% of the cases.

@JoeRobich
Copy link
Member

This is configurable via .edtorconfig.

@JoeRobich JoeRobich closed this as not planned Won't fix, can't repro, duplicate, stale Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants