pharring/EditorGuidelines

Allow custom styles using Visual Studio's Command Window

Opened this issue · 1 comments

It is only possible to define custom guidline styles for different columns using the .editorconfig file. Via Tools->Options it is only possible to alter the color of the default style.
My suggestion would be, to allow defining custom styles using the Visual Studio Command Window with a notation similar to the one in the .editorconfig:
Edit.AddGuideline 40 1px dotted black, 80 10px solid 30B0ED4C, 132

The advantage of this would be to more easily define a project independant standard without the need to define a .editorconfig for every single newly created or existing project.

Good suggestion. To make it a bit easier to reason about, I'd like to limit AddGuideline to adding one guideline at a time.
So, the example above would have to be written as three separate commands:

Edit.AddGuideline 40 1px dotted black
Edit.AddGuideline 80 10px solid 30B0ED4C
Edit.AddGuideline 132

At that point, we'd be adding an extended format for the argument(s) to AddGuideline.

We'd also have to define how to deal with consecutive "AddGuideline" with conflicting styles. "Last one wins", would be the obvious answer. i.e. you can use AddGuideline to modify the style of an existing guideline.