title: Custom representation of C++ variables in VScode inspector
body: <p>I am working on a C++ project for which would be really useful to see the string representation of variables in VScode's variable inspector.</p>
  <p>How can I implement a custom representation of variables in the inspector? I have already tried overloading the <code>&lt;&lt;</code> operator, but with no success.</p>
  <pre><code>// in header file
  std::ostream&amp; operator&lt;&lt;(std::ostream&amp; stream, Tokens::Token const&amp; token);
  
  // in implementation file
  std::ostream&amp; operator&lt;&lt;(std::ostream&amp; stream, Tokens::Token const&amp; token)
  {   
      // write representation to stream
      return stream;
  }
  </code></pre>
  <p>I know there are no errors in the <code>operator&lt;&lt;</code> function because printing to the console via <code>std::cout &lt;&lt; *token &lt;&lt; std::endl;</code> works fine.</p>
  <p>This is what I would like to achieve</p>
  <p><a href="https://i.stack.imgur.com/mNLj8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mNLj8.png" alt="Expected behaviour" /></a></p>
  <p>Thanks in advance</p>