Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

bug

We are currently researching possible ways of solving this by:

  1. Inspecting the current classification of the text and drawing a colored intraline adornment.
  2. 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?

like image 666
Daniel Avatar asked Jan 29 '15 10:01

Daniel


1 Answers

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.

like image 140
Noah Richards Avatar answered Sep 29 '22 01:09

Noah Richards