2

Closed

Rendering of output difficult to read in Visual Studio IDE

description

I ran the example on the home page and the output did not come out quite right; this could be subject to what the font settings are in VS.
Attached is a screen shot showing what I saw.

file attachments

Closed May 5, 2011 at 2:32 PM by robfe
can't fix

comments

asdandRizzo wrote May 5, 2011 at 7:09 AM

Seems regression in 1.0.2.
1.0.1 was fine

asdandRizzo wrote May 5, 2011 at 7:21 AM

Sorry. In VS it is really broken:

qwe == zxc
| | |
| | 2
| False
1

I was misled by running test in ReSharper.

robfe wrote May 5, 2011 at 2:31 PM

This is because visual studio doesn't render the ascii as monospaced, there's not much we can do about this...

asdandRizzo wrote May 10, 2011 at 12:52 PM

I replaced
nodeInfos.Add(new NodeInfo { Location = textLine.Length, Value = value, Depth=depth });
with
nodeInfos.Add(new NodeInfo { Location = textLine.Length*2, Value = value, Depth=depth });
And got much better output
qwe == zxc
' | '
| | 2
| False
1

asdandRizzo wrote May 10, 2011 at 1:02 PM

(it seems I can't add "much better output here", but it really better)

Console.WriteLine(Process.GetCurrentProcess().ProcessName);

Gives:
"QTAgent32" - for VS2010 Pro at 64-bit Windows 7
Or :
"JetBrains.ReSharper.TaskRunner.CLR4" - for ReSharper 5.1

Depending on it it is possible to change output.

Is it viable solution?

votek wrote May 10, 2011 at 1:39 PM

That should work, if it works for you :)