Appendix D. Integrating code generation into your IDE

Writing a code generator can be difficult—but convincing your fellow engineers to use the generator can be even more difficult. The key to successfully deploying your generator is to make it as simple as possible to use. One technique is to use it to integrate the code generator into the tool you utilize every day: your integrated development environment (IDE).

In this appendix, we discuss how you can integrate tools into a number of popular IDEs.

D.1. Integration methods

Two methods are fairly common across all IDEs: external tool invocation and filtering. In this section, we describe these methods in detail.

D.1.1. External tool invocation

In this model, the editor runs an external ...

Get Code Generation in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.