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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.