Code Templates

Code templates are small document fragments that can be reused in other editing sessions. We have defined a large set of ready-to use templates for XSL and XML Schema stored in a file named code_templates.xml located in the <oXygen/> Preferences folder (folder Application Data\com.oxygenxml on Windows / .com.oxygenxml on Linux of the user home directory). So you can even share the templates from this file with your colleagues using the import function. To obtain the template list you have use the Content Completion on request shortcut key (usually CTRL-SPACE).

 

Figure 15.9. The Code Templates preferences panel

The Code Templates preferences panel
New

Define a new code template.

Edit

Edit the selected code template.

Delete

Delete the selected code template.

Import

Import a file with code templates.

Export

Export a file with code templates.