dotnet icon indicating copy to clipboard operation
dotnet copied to clipboard

[Feature] Snipppets for MVVM toolkit

Open erikthysell opened this issue 2 years ago • 3 comments

Describe the problem

In order to minimize repetitivity, snippets similar to propfull

Describe the solution

I would love snippets similar to Prism Template Pack

Alternatives

using Prism Template Pack (just for propp which I guess would work, cmd would not since PRISM has the DelegateCommand instead of RelayCommand.)

Additional info

No response

Help us help you

No response

erikthysell avatar Jan 24 '22 19:01 erikthysell

Hello, 'erikthysell! Thanks for submitting a new feature request. I've automatically added a vote 👍 reaction to help get things started. Other community members can vote to help us prioritize this feature in the future!

ghost avatar Jan 24 '22 19:01 ghost

Wouldn't want to hold back a feature due to future work, but I noticed there are efforts to modernize Snippet related. Might review this first.

https://github.com/dotnet/roslyn/issues/56541

shaggygi avatar Jan 29 '22 12:01 shaggygi

With source generators, this now seems unnecessary. Close?

MisinformedDNA avatar Sep 14 '22 03:09 MisinformedDNA

@MisinformedDNA I do not know much about source generators but from what I read here: https://learn.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/source-generators-overview I cannot see how that would make it as nice/easy as a snippet...

erikthysell avatar Dec 01 '22 06:12 erikthysell

@erikthysell Yeah, I'm not entirely sure what I meant either. lol Maybe it was in reference to the reduction of the amount of code needed due to the source generators included in the toolkit such as [ObservableProperty] and [RelayCommand] which reduce the amount of code to a standard field or method with an attribute. So, a snippet could still be useful, but not as useful as before (pre 8.0).

MisinformedDNA avatar Dec 01 '22 22:12 MisinformedDNA

Closing this, as we don't plan on adding snippets for the MVVM Toolkit. As has been mentioned already, we provide source generators to help removing boilerplate and verbosity 🙂

Sergio0694 avatar Dec 18 '22 02:12 Sergio0694