Antonio Gravano
Antonio Gravano

Reputation: 163

Visual Studio XML summaries not working

When I used to use Visual Studio I could use /// to declare a summary of my method at the and it would autogenerate all the tags and add a line for any params however after installing Visual Studio 2015 I no longer seem able to do this by default. Is there something I need to enable in the settings? I'm coding in C++ however if I don't think that is the problem.

Thanks

Upvotes: 4

Views: 5285

Answers (3)

SeriousBusinessGuy
SeriousBusinessGuy

Reputation: 103

Just an update to Visual Studio 2022: enter image description here

Upvotes: 0

Morten Nørgaard
Morten Nørgaard

Reputation: 2809

I got this too, and furthermore none of my short-cut keys worked any longer!

Turns out I was in folder-view, instead of solution-view... DOH

Upvotes: 1

adrianbanks
adrianbanks

Reputation: 83004

This is a Visual Studio setting. For C#, you turn it on by going to Tools -> Options and ensuring that the Generate XML documentation comments for /// is enabled.

There is a similar setting under Basic for VB, but I can't see a similar setting for C++ (I don't have the full C++ feature installed though so that may be why). Hopefully you can find a similar setting.

Upvotes: 4

Related Questions