title: How to use Visual Studio Text Visualizer for custom types?
body: <p>In Visual Studio 2015 (and in some older versions) when debugging C# code it's possible to display the values of the <code>string</code> variables in various visualizers (Text, XML, HTML, JSON) via a drop-down list with a magnifying glass icon. This also works for some non-string types, for example, <code>System.Xml.Linq.XElement</code>. Is it possible to use these build-in visualizers to display the value of a variable of my own custom type?</p>
  
  <p>Context:</p>
  
  <p>I need to be able to quickly check the state of a complicated custom type that can be acceptably visualized only in a <strong>multi-line</strong> text environment.</p>