Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

highlighting messages in output window

I saw a screencast recently and what really got me interested is that messages in debugger output window were displayed in different colours (different color for warnings, exceptions etc).Unfrotunately I can't find this screencast anymore.

Does anyone know if this is a new feature of VS2010 or is it part of 2008 and just need turning on?

like image 467
jonasz_iva.ru Avatar asked Dec 16 '22 21:12

jonasz_iva.ru


2 Answers

It would be pretty easy to do as an extension, if you are interested:

  1. Start with the Diff Classifier sample.
  2. Change the [ContentType] attribute in DiffClassifierProvider.cs to "output".
  3. Delete the ContentTypeDefinition and FileExtensionToContentTypeDefinition exports from DiffClassificationDefinitions.cs.
  4. Add/modify the ClassificationTypeDefinition and ClassificationFormatDefinition exports for the formatting you want to apply.
like image 180
Noah Richards Avatar answered Dec 19 '22 12:12

Noah Richards


I think it's only available for Visual Studio 2010, since it uses WPF. Custom formatting for the Debug output window is possible with the VSCommands extension.

like image 20
Mark Cidade Avatar answered Dec 19 '22 10:12

Mark Cidade