Book a Demo

Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Prev Next

Override Default Templates

Enterprise Architect has a set of built-in or default code generation templates. The Code Templates Editor enables you to modify these default templates, hence customizing the way in which Enterprise Architect generates code. You can choose to modify any or all of the base templates to achieve your required coding style.

Any templates that you have overridden are stored in the project file. When generating code, Enterprise Architect first checks whether a template has been modified and if so, uses that template. Otherwise the appropriate default template is used.



Code > Configure > Options > Edit Code Templates

Keyboard Shortcuts



Override a default code generation template using the Code Templates Editor.

When generating code, Enterprise Architect now uses the overriding template instead of the default template.



See also


Select the appropriate language from the list.


Select one of the base templates from the list.

Stereotype Overrides

If the base template has stereotyped overrides, you can select one of these from the list.

<Other fields>

Make any other modifications required.


Click on this button to store the modified version of the template to the project file. The template is marked as modified.