When I type the trigger the auto comment feature in Visual Studio (by typing "'''" or "///"), most of the XML commenting details show up that I like. However, I typically add the history tag to the documentation so I can track and changes that are made to the method over time.
Is there any way I can customize the auto commenting feature so that it will add the history tag, and potentially some generic Name - Date - Change placeholder text?
The only way I know to do this is on the line right above your method just type "///" and it will generate a comment template based on the method.
Shortcut key for comment and uncomment in Visual Studio 2019 Select the piece of code that you would like to comment on. Then click CTRL + K + C to apply comment on the selected code.
Both VS Code and Android Studio toggle line comments with Ctrl + / . That is, when the lines are already commented out, pressing Ctrl+/ un-comment them.
I'd suggest using GhostDoc. It generates very smart comments using /// based on your method names and parameters. Also, it is fully customizable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With