What is a viable method of spacing out text in visual studio

We are attempting to expand text in Visual Studio. Our current attempt consists of creating transparent intraline adornments at certain points in the text.

We have just stumbled upon a disadvantage to this method. Namely that when the given text has a background classification attached to it, the classification breaks and the result looks like this:

We are currently researching possible ways of solving this by:

  • Inspecting the current classification of the text and drawing a colored intraline adornment.
  • Drawing the background manually, by drawing in an adornment layer below the text.
  • However, both of these solutions seem very hacky.
    What would be the best way of going about solving this problem?


    You're asking how to hack around a standing limitation in the editor, so there isn't a great way :-/

    My background color fix extension does what you're suggesting in #2, so you could start from there. I haven't tested it since VS2010 or so, so it may fail in interesting and exciting ways.

    链接地址: http://www.djcxy.com/p/83410.html

    上一篇: 枚举值不被WCF服务反序列化

    下一篇: 什么是在Visual Studio中分隔文本的可行方法