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

Implement Interface: control generated property style #13932

Closed
rchande opened this issue Sep 20, 2016 · 2 comments
Closed

Implement Interface: control generated property style #13932

rchande opened this issue Sep 20, 2016 · 2 comments
Assignees
Labels
Area-IDE Feature Request Resolution-Duplicate The described behavior is tracked in another issue
Milestone

Comments

@rchande
Copy link
Contributor

rchande commented Sep 20, 2016

Ported from DevDiv 220644


Problem Description


Description: It's not really a bug but an improvement could be made.

In previous versions of Visual Studio it was possible to change the generation of PropertyStubs during "Implement Interface" actions (See also https://connect.microsoft.com/VisualStudio/feedback/details/1857694/visual-studio-2015-implement-interface-snippet-not-working)

I don't like the generation of properties like this:
public string Name
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}

why it is not possible to customize it (like in previous versions by modifying snippets) to get something like:
public string Name { get; set; }
}

Snippets in directory are not used anymore for refactoring
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC#\Snippets\1031\Refactoring

Repro Steps:Define some Interface, write class that should implement that interface, and execute "Implement interface" from context menu.

public interface ITest
{
string Name { get;set;}
}

public class Test : ITest (right click - implement interface)
{
}

Impact:It was a good feature to modify the snippets, why it's gone?

@Pilchie
Copy link
Member

Pilchie commented Sep 22, 2016

This is the C# equivalent of #5898.

@Pilchie
Copy link
Member

Pilchie commented Apr 11, 2017

Resolving as a dupe of #5898 - don't need both of these to track.

@Pilchie Pilchie closed this as completed Apr 11, 2017
@Pilchie Pilchie added the Resolution-Duplicate The described behavior is tracked in another issue label Apr 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Feature Request Resolution-Duplicate The described behavior is tracked in another issue
Projects
None yet
Development

No branches or pull requests

4 participants