How do i configure the formatter to use custom maximum line length?
The default seems to be stored in FormatterPreferenceKeys as 120. I tried to override the IPreferenceValuesProvider implementation and return the default value as 40. But this has no effect on line length when the formatting is called.
Moritz Eysholdt Messages: 160 Registered: July 2009 Location: Kiel, Germany
Does this mean every Procedure1<IHiddenRegionFormatter> should also apply setautowrap
yes, exactly, it should.
The formatter only applies autowrap to HiddenRegions that are explicitly marked as such. Otherwise there are too many languages where autowrap would turn a document into a big mess.
If you need to have it enabled for all regions, you may get the first HiddenRegion of the document via