Use ghostdoc to implement custom annotations

Source: Internet
Author: User

 

Using ghostdoc can help us generate more complete specificationsCodeNote: If the variable naming conventions are met, you only need to press Ctrl + Shift + d (default Hot Key ), the automatically generated annotation can fully express the purpose of our creation method or attribute, without the need to manually modify the annotation. In addition, it is powerful in its customability. We can customize the annotations we need through rule definitions. The following illustration shows how to customize annotations.
Under VS 2005 tools, select the next menu item of ghostdoc to open the ghostdoc configuration panel.

Select method and click Add to add a rule.

In the select summary field, click the button that appears at the end to configure the annotation template,

 

 

Double-click to select macro variables:

One way OK.
Write a method to test... move the cursor to the method name and press Ctrl + shit + D.
The same method can be used to define attributes and parameters, and export the current configuration for use after the next reinstallation.

 

 

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.