'Is there a way to generate XML-style comments for all methods/classes in project?
When using an IDE like Visual Studio or Rider for C#, writing triple-slashes auto-completes to an XML-style comment, along with fields for input and output (when it comes to methods).
/// <summary>
/// This is an example!
/// </summary>
public static void ExampleMethod() { }
Is it possible to generate empty XML-style comments like this, but on an entire C# solution scope at once?
It doesn't seem like the aforementioned IDEs have the built-in capability to do that, and I've yet to find a plugin that completes this task.
Am I missing an existing solution, or is there no existing solution for this specific need of mine?
Any information would be helpful. Thanks in advance :)
Solution 1:[1]
I have solution for Rider:
Install this tool: https://github.com/p1va/dotnet-document
In Rider go to File > Settings > Tools | External Tools and add new external tool. Fields: Name:DotnetDocument
Program:dotnet
Arguments:document apply $FilePath$
Working directory:$ProjectFileDir$In Rider go to File > Settings > Keymap and in search field enter:DotnetDocument and add keyboard shortcut. For example: Ctrl + Shift + D
Enjoy
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | DerSkythe |