(CSDN Jan 31, 2007)
Pawel Glowacki, a CodeGear guy, blogged about his xdoc Code Template here.
The fact is that I have done a few xml-comments-related templates when designing CBC. After installing CBC, there is a menu item in the Start Menu named “Install extra templates”. Click it and a few C# templates will be added.
You can download CBC from http://cc.codegear.com/Item/24010.
The only problem is that these templates are manual, not auto.
In fact I am wondering why Delphi cannot generate basic xml comments for us. SharpDevelop has such a nice feature.
The usage of these templates are complex because the IDE does not work as I expect.
The templates do not have
/// in the beginning. I make it because after typing a line of xml comments and hitting the ENTER, BDS will lead you to the next line and append
However, keywords after
/// will not be fired by SPACE or TAB, so you must use CTRL + J.
An example of using the templates is
- type ///.
- type sum or summ.
- Hit CTRL + J, and the template “summary” is triggered.
- After finishing this tag, hit ENTER.
- The IDE adds /// for you.
- Type re.
- Hit CTRL + J, and choose remarks tag from the popped list.
- Finish the remarks tag.