How do I write color text to the Visual Studio output window from c#?

前端 未结 7 1971
忘了有多久
忘了有多久 2020-12-19 06:16

I want to write color text to the Visual Studio output window from c#. I want to output red code from my unit tests.

7条回答
  •  自闭症患者
    2020-12-19 07:06

    Actually there are extensions for that. I use the lite (free) version of VSCommands for Visual Studio 2010. With the Pro version a regex could be set to make the colouring. In the lite version I add "warning" text to the debug message and it is written in light brown.

提交回复
热议问题