I suggest you ...

Intellisense in XML Documentation For <exception>, <see> and <seealso>

I'm often adding <see cref="Type"> or <see cref="Type.Member"/> elements to the /// comments in C# code. When writing them, I have to type (or copy-paste) the full name of the type/member I'm referencing.

There should be Intellisense similar to when writing actual code available when using the <exception>, <see> and <seealso> tags.

113 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Martin Costello shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

8 comments

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...
  • JMCF125 commented  ·   ·  Flag as inappropriate

    I agree, writing xml comments in visual c# is almost like writing them in notepad.

  • A. D. commented  ·   ·  Flag as inappropriate

    Yeah, I fully agree. Your suggestion would be rather useful to have implemented in Visual Studio.

    It's currently quite cumbersome to manually add fully qualified class names to &lt;see cref="..."&gt; tags. ... And it's awkward that only after compiling you see that you'd been entering invalid types, parameter names etc.

  • David Kean commented  ·   ·  Flag as inappropriate

    Ah, actually provide the description of why the exception is thrown? Yes, that would be useful.

  • Martin Costello commented  ·   ·  Flag as inappropriate

    @David Kean, it's not about having intellisense add these types, it's about getting Visual Studio to provide Intellisense for the values you put in their cref attributes.

  • Martin Costello commented  ·   ·  Flag as inappropriate

    My tags got removed on posting.

    "Im often adding &lt;see cref=&quot;Type&quot;/&gt; or &lt;see cref=&quot;Type.Member&quot;/&gt; ..."

    "... when using the &lt;exception&gt;, &lt;see&gt; and &lt;seealso&gt; tags."

Feedback and Knowledge Base