AI Autocompletion
If the Oxygen AI Positron add-on (version 7.0 or later) is installed, an AI Autocompletion feature is integrated into Oxygen XML (version 28.0 or later). The AI Autocompletion feature empowers developers by offering context-aware inline code and markup suggestions directly in the editor. As you type, the AI Positron proactively proposes completions, structural fragments or enhancements tailored to your current editing context (e.g. XSLT, XSD, JSON Schema, Schematron). The goal is to reduce manual typing, speed up coding, and maintain higher consistency.
How AI Autocompletion Works
AI Positron continuously monitors what you type in the Text editing mode. When it detects a suitable opportunity, it proposes inline suggestions directly within your editing area at the cursor position, displaying it in a subtle shaded gradient so it is clearly distinguishable from your own typing.
Accepting and Using Suggestions
When a suggestion is displayed:
- Press Tab on your keyboard to accept and
insert it into your code.Note:Press Shift + Tab to access AI Autocompletion Preferences.
- If it is not suitable, simply keep typing and the AI Autocompletion will adapt its next recommendation.
This design ensures that AI assistance feels natural and unobtrusive, never interrupting your normal workflow.
Adaptive and Context-Aware Behavior
The AI Autocompletion continuously adapts to your current context. Suggestions are generated through real-time AI requests and automatically adjust as you edit or change nearby code. The more context it has in your file, the more precise its completions become. This adaptability makes it ideal for complex projects where structures evolve quickly.
Supported File Types
AI Autocompletion is available for various editors and is optimized for:
- XSLT - Templates, functions, and XPath expressions.
- XSD - Schema elements, type definitions, and constraints.
- JSON Schema - Object structures, keywords, and property patterns.
- Schematron - Rules, assertions, and diagnostics.