First noticed this in Notepad++, where //
comments and ///
comments were shown in different colours.
Doxygen revealed more about it, but I'm not convinced about its efficacy.
/*
and */
? (I figure there has to be a better explanation than it being useful when nesting comments)Ctrl+k Ctrl+c
for multi-line comments?That said, yes I have come across triple slashes too and they are generally used to indicate comments that an auto-documentation system like doxygen would pick.
In Visual Studio the ///
indicates documentation not just comments. Following your link the explanation is the same. It is used to adorn comments that will be specifically formatted via your editor or some other tool as documentation for a class, method, namespace, etc.
The author might intend to put documentation after ///
At where I work, we use 3 styles of doxygen comment blocks for documentation because lack of coding style guidelines.
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