ui5-language-assistant icon indicating copy to clipboard operation
ui5-language-assistant copied to clipboard

Add warning if property contains the default value

Open ghost opened this issue 4 years ago • 2 comments

Hello, I have a feature request for you:

I sometimes find myself copying source code from the samples page. These examples are sometimes "bloated" (e.g. SimpleForm). Or I just try different values for a specific property and then stick with the default value because I like it the most (e.g. different backgroundDesigns for a Panel.

It would be nice to know that I can just remove the property because it contains the default value.

ghost avatar Mar 01 '21 12:03 ghost

Hello @OTTOxMarc

I think that such a feature would have a pre-requirement of "user configurable validation rules" capability first. Because this is basically a style preference, and we cannot always show "Style" warnings, particularly if there are many of them.

bd82 avatar Mar 02 '21 09:03 bd82

Yes, I see that this might not be important for everyone and should be (de)activatable in some kind of user settings.

ghost avatar Mar 02 '21 10:03 ghost