C # automatically generate annotations
Because coding specifications require the code to be written, the code needs to be clearly annotated to facilitate later maintenance.
In this paper, by writing VBA macros to automatically generate the class, one key generates the corresponding annotation mark, and then in the corresponding indicator, enter the corresponding function, variable or event type of code.
The steps are as follows:
1. Open vs.net, click: Tools-Macro-Macro Explorer.
2. On the Macros node in Macro Explorer, right-click-add-Ins project, select the project you want to load.
3. Double-click Module1 into edit mode, modify the code, the name of the author is changed to its own name, the following figure:
4. return to the Vs.net main interface, click Tools-Customize-command-rearrange commands. Then load the macro you just defined into the VS menu, run the Add Macro shortcut menu, or run the macro each time you create a new class.
5. The contents of the annex are VBA.