xml-comments

How to have comments in IntelliSense for function in Visual Studio?

北城以北 提交于 2019-11-27 05:09:51
问题 In Visual Studio and C#, when using a built in function such as ToString(), IntelliSense shows a yellow box explaining what it does. How can I have that for functions and properties I write? 回答1: To generate an area where you can specify a description for the function and each parameter for the function, type the following on the line before your function and hit Enter : C#: /// VB: ''' See Recommended Tags for Documentation Comments (C# Programming Guide) for more info on the structured

Visual Studio Disabling Missing XML Comment Warning

泪湿孤枕 提交于 2019-11-26 18:54:33
问题 I have a project with over 500 Missing XML Comment warnings. I know I can remove the XML Comment feature, or paste empty comment snippets everywhere, but I'd prefer a generic solution where I can make one change that disables all warnings of this type. What I do just now is putting ///<Summary> /// ///</Summary> or #pragma warning disable 1591 was just curious if it would be possible. 回答1: As suggested above, in general I don't think that these warnings should be ignored (suppressed). To

Change default XML comment snippet in Visual Studio

前提是你 提交于 2019-11-26 18:17:55
问题 When I hit /// in Visual Studio, is it possible to change the resulting snippet from this: /// <summary> /// /// </summary> to this?: /// <summary></summary> 回答1: Here is the solution working in at least VS2010. Save the bottom code as a file summ.snippet. Visual Studio 2010 / Tools / Code Snippet Manager Click import, browse to file. Save with default options. Now goto your code window and type summ + tab + tab Result /// <summary> </summary> with the cursor in the middle of the tag, ready