Enabling triple/three slash XML comments in Visual

2019-01-27 19:49发布

My work version of Visual Studio 2010 doesn't seem to generate XML commentary for me while coding in C# and typing ///. Yet, my Visual Studio 2010 at home does this just fine, as does the version of Visual Studio 2008 I have at work.

I have searched for the option to enable these XML comments both locally and online to no avail. Can anyone please tell me where I can toggle whether the /// XML comments are enabled? Thank you.

2条回答
孤傲高冷的网名
2楼-- · 2019-01-27 20:08

There's an option in the Text Editor section of Tools, Options... called "Generate XML documentation comments for ///".

Generate XML documentation comments for ///

查看更多
仙女界的扛把子
3楼-- · 2019-01-27 20:26

Tools → Properties → Text Editor → C# → Advanced.

Tick the checkbox next to Generate XML documentation comments for ///.

XML comments config option

查看更多
登录 后发表回答