C # automatically generate annotations

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.