Content Completion Preferences
Oxygen XML Author plugin provides a Content Completion Assistant that provides a list of available options at any point in a document and can auto-complete structures, elements, and attributes. To configure the Content Completion preferences, open the Preferences dialog box and go to . These options control how the Content Completion Assistant works.
The following options are available:
- Auto close the last opened tag
- When enabled, Oxygen XML Author plugin automatically closes the last open tag when you
type
</
. - Automatically rename/delete/comment matching tags
- If you rename, delete, or comment out a start tag, Oxygen XML Author plugin
automatically renames, deletes, or comments out the matching end tag.
Note
If you select Toggle comment for multiple starting tags and the matching end tags are on the same line as other start tags, the end tags are not commented. - Close the inserted element
- When you choose an entry from the Content Completion Assistant
list of proposals, Oxygen XML Author plugin inserts both start and end tags. The following
additional options are available in regards to closing the element:
- If it has no matching tag - The end tag of the inserted element is automatically added only if it is not already present in the document.
- Add element content - Oxygen XML Author plugin inserts the required elements specified in the DTD, XML Schema, or RELAX NG schema that is associated with the edited XML document.
- Case sensitive search
- When enabled, the search in the Content Completion Assistant is case-sensitive when you
type a character ('a' and 'A' are different characters).
Note
This option is ignored when the current language itself is not case sensitive. For example, the case is ignored in the CSS language. - Position cursor between tags
- When enabled, Oxygen XML Author plugin automatically moves the cursor between the start
and end tag after inserting the element. This only applies to:
- Elements with only optional attributes or no attributes at all.
- Elements with required attributes, but only when the Insert the required attributes option is disabled.
- Show all entities
- Oxygen XML Author plugin displays a list with all the internal and external entities
declared in the current document when you type the start character of an entity
reference (for example,
&
). - Insert the required attributes
- Oxygen XML Author plugin inserts automatically the required attributes taken from the DTD or XML Schema.
- Insert the fixed attributes
- If enabled, Oxygen XML Author plugin automatically inserts any
FIXED
attributes from the DTD or XML Schema for an element inserted with the help of the Content Completion Assistant. - Show recently used items
- When enabled, Oxygen XML Author plugin remembers the last inserted items from the
Content Completion Assistant window. The number of items to be
remembered is limited by the Maximum number of recent items shown
list box. These most frequently used items are displayed on the top of the content
completion window and
their icons are decorated
with a small red square..
- Maximum number of recent items shown
- Specifies the limit for the number of recently used items presented at the top of the Content Completion Assistant window.
- Learn attributes values
- When enabled, Oxygen XML Author plugin learns the attribute values used in a document.
- Learn on open document
- Oxygen XML Author plugin automatically learns the document structure when the document is opened.
- Learn words (Dynamic Abbreviations, available on CTRL-SPACE (COMMAND-SPACE on OS X))
- When enabled, Oxygen XML Author plugin learns the typed words and makes them available
in a content completion fashion by pressing Ctrl + Space (Command + Space on OS
X) on your keyboard;
Note
In order to be learned, the words need to be separated by space characters.