Template engine-based Code generator Smart Code Preview

Source: Internet
Author: User
Overview

There are many code generators written in China. It can be said that many companies have their own code generators, but they are not easy to use and have poor customization. They are always inferior to CodeSmith or MyGeneration. Recently, many code generators have been released in the garden. Among them, henry's CodeFactory VS plug-in is worth recommending. I personally am also writing a code generator recently. I started to want to write a code generator that can meet the basic requirements of the company's projects. Later I felt that it was better to use it, so we have the Smart Code. When I see so many friends sending code generators, I will show them in advance. However, I am still under development. I hope this will be available at the end of this month and I will download it later.

Features

1. The overall interface style is similar to Visual Studio.

2. The template is completely based on the custom template engine. The template is written using ASP. NET markup and C # syntax.

Template writing is similar to CodeSmith. You can use Import to Import a namespace, use Assembly to add an Assembly, use Include to Include other template files, and use Property to declare attributes. You can also use <script runat = "temlate"> </script> to write code snippets.

3. You can customize attributes and configure interface controls.

Data table attributes:

Field Property:

4. multiple types of projects can be generated and custom project types are supported.

5. The generated code is a complete VS project.

6. generate code preview.

Conclusion

The Smart Code is still under development. After development, it will be available for download for free. At the same time, if you have any good suggestions and ideas, please mail them to me. Thank you very much.

Author: TerryLee
Source: http://terrylee.cnblogs.com

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.