mfractor / mfractor-feedback

Found a bug or have a feature request for MFractor? Submit it here!
3 stars 0 forks source link

New Feature: DateTime/Number format suggestion #280

Open ravero opened 3 years ago

ravero commented 3 years ago

.NET has a rich formatting system for strings that is almost a DSL itself. I've always find myself checking on the Standard numeric format strings and Standard date/time format strings docs for quick reference.

Going back and forward this docs is tedious and time consuming. It would be best if we could add Intellisense extensions to MFractor to provide suggestions when in a format string. The image below is taken from Rider and is a pretty good example of this implementation.

screen_shot_2020-07-12_at_20 16 56

Notice that it appears as you time the argument to ToString on a DateTime type. This is the first place where it should appear. Another very useful place to have this Intellisense would be in the StringFormat property of a Binding Expression.

Additional related suggestions:

matthewrdev commented 3 years ago

@ravero I believe following our discussion we concluded this was included in Visual Studio by default now.

Can you confirm and then close this ticket if so?

ravero commented 3 years ago

@matthewrdev this is true for C# ToString(), but its still lacking on XAML Binding StringFormat parameter, where I think it would be really useful. Can we keep it under consideration for this scenario?