EditorGuidelines icon indicating copy to clipboard operation
EditorGuidelines copied to clipboard

Add Guideline at... menu option

Open EEaglehouse opened this issue 6 years ago • 1 comments

Nice, simple extension! Thanks!

I suggest adding a new menu option, "Add Guideline at..." or "Edit guidelines...", that allows entering the column or columns for setting the guidelines.

This tool confused me at first because I expected to be able to tell it the column I wanted for the guideline. When the guideline appeared at the text caret and not where I clicked open the context menu, I quickly figured out I had to place the text caret first, then invoke the menu to set the guideline. You already created the ability to specify the guideline column from the Visual Studio command line by entering the column number. It doesn't seem much of a stretch to have a pop-up dialog box that allows the user to manually enter column(s) in a text box. Maybe setting the color, too, but that's less important to me.

I understand that's easy for me to say, never having tried to create a VS extension. But if it's not too difficult to implement, this is a pretty intuitive option to me.

EEaglehouse avatar Jul 18 '19 17:07 EEaglehouse

Thanks for the feedback. I think "Edit guidelines..." would be the way to go.

It could be as simple as an edit box with the current settings as a string e.g.

40, 80

with some introductory text and some examples.

It would also be nice to detect if/when the settings have been overridden via .editorconfig and direct people to open the relevant .editorconfig file.

An alternative to a dialog (which has been floated before) would be to host this UI on a page in Tools/Options...

pharring avatar Jul 18 '19 21:07 pharring