You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just took the new EditorConfig UI for a spin, and aside from noticing what appears to be a bug in localization, I was wondering: What am I even setting there?
And to some degree: What's the effect of changing this?
After years of writing the file by hand, I've gotten used to knowing the keys and using them to quickly look up things if i needed more info.
So, first one: Show the key in a column (maybe configurable, hidden by default or whatever).
I basically want the info that "Use Tabs" sets the option indent_style, or that "Leave block on single line" affects csharp_preserve_single_line_blocks. Why? Keep reading, since I want to know what a setting does, and I can do that easiest by searching the docs for the key. Unless someone gave me a preview instead, right there, in the editor.
For things that .editorconfig did not support at various times, I simply went back to using the built-in settings (from Tools > Options, Text Editor > C# > Code Style) and documenting it in a visible place so others make sure they use the same settings.
One of the nice things there was the immediate preview at the bottom that let me see the effects of setting a specific option.
So, second one: Add a preview for options, so a user can see the effect while toggling values and make a decision on what they want.
While this sounds a bit like a stretch (since the UI is fairly new and probably fairly generic in its nature), this might not be an immediate target; but I'm assuming that the information is there somewhere - after all, the documentation also has examples (in this case for dotnet_sort_system_directives_first) that have to be written somewhere, somehow, by someone (so why not write them in a way that they're reusable here?)
There are probably other things that would also improve the experience in here, but those are probably the top ones that would really add more value - at least for me.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I just took the new EditorConfig UI for a spin, and aside from noticing what appears to be a bug in localization, I was wondering: What am I even setting there?
And to some degree: What's the effect of changing this?
After years of writing the file by hand, I've gotten used to knowing the keys and using them to quickly look up things if i needed more info.
So, first one: Show the key in a column (maybe configurable, hidden by default or whatever).
I basically want the info that "Use Tabs" sets the option
indent_style
, or that "Leave block on single line" affectscsharp_preserve_single_line_blocks
.Why? Keep reading, since I want to know what a setting does, and I can do that easiest by searching the docs for the key.
Unless someone gave me a preview instead, right there, in the editor.
For things that
.editorconfig
did not support at various times, I simply went back to using the built-in settings (from Tools > Options, Text Editor > C# > Code Style) and documenting it in a visible place so others make sure they use the same settings.One of the nice things there was the immediate preview at the bottom that let me see the effects of setting a specific option.
So, second one: Add a preview for options, so a user can see the effect while toggling values and make a decision on what they want.
While this sounds a bit like a stretch (since the UI is fairly new and probably fairly generic in its nature), this might not be an immediate target; but I'm assuming that the information is there somewhere - after all, the documentation also has examples (in this case for
dotnet_sort_system_directives_first
) that have to be written somewhere, somehow, by someone (so why not write them in a way that they're reusable here?)There are probably other things that would also improve the experience in here, but those are probably the top ones that would really add more value - at least for me.
Beta Was this translation helpful? Give feedback.
All reactions