dotnet
dotnet copied to clipboard
[Feature] Snipppets for MVVM toolkit
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
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!
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
With source generators, this now seems unnecessary. Close?
@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 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).
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 🙂