title: How to write C++ comments that show up in Intellisense?
body: <p>I'm programming in C++ using Visual Studio 2010 Ultimate. I want to document some functions and I want the documentation to show up in Intellisense.</p>
  
  <p>According to <a href="http://msdn.microsoft.com/en-us/library/s0we08bk.aspx">MSDN</a>, I just need to put the comment before the declaration or after it on the same line. So I tried this:</p>
  
  <pre><code>// This is a test.
  void foo();
  void bar() { foo(); }
  </code></pre>
  
  <p>When moving my mouse over <code>foo()</code>, the comment doesn't appear in the tooltip. I also tried:</p>
  
  <ul>
  <li><code>///</code></li>
  <li><a href="http://msdn.microsoft.com/en-us/library/ms177226.aspx"><code>&lt;summary&gt;&lt;/summary&gt;</code></a> tags</li>
  <li>Building with <a href="http://msdn.microsoft.com/en-us/library/ms173501%28v=VS.90%29.aspx"><code>/doc</code></a> (by setting the "Generate XML documentation files" option in the project settings)</li>
  </ul>
  
  <p>I've had no luck so far. Does anyone know a way to make this work?</p>