Code Templates

Code templates are code fragments that can be inserted quickly at the current editing position . Oxygen XML Editor comes with a set of built-in code templates for CSS, LESS, Schematron, XSL, XQuery, and XML Schema document types. You can also define you own code templates and share them with others.

To get a complete list of available code templates, press Ctrl Shift Space (Command Shift Space on OS X) in Text mode or Enter in Author mode. To enter the code template, select it from the list or type its code and press Enter. If a shortcut key has been assigned to the code template, you can also use the shortcut key to enter it. Code templates are displayed with a symbol in the content completion list.

When the Content Completion Assistant is invoked (Ctrl Space (Command Space on OS X)), it also presents a list of code templates specific to the type of the active editor.

To watch our video demonstration about code templates, go to http://oxygenxml.com/demo/Code_Templates.html.