APEXlang Language Services

When you open an APEXlang file in the editor, SQL Developer for VS Code provides language features to help you author, validate, and navigate APEXlang content.

While editing APEXlang files, SQL Developer for VS Code displays a light bulb icon Show Code Actions in the editor margin when a Quick Fix or other code action is available. Click the light bulb or press Ctrl+I to view and apply suggested fixes, such as correcting common issues or refactoring content.

Syntax Highlighting

APEXlang syntax is color-coded based on your editor theme and preferences. Description of apex_syntax_highlight.png follows

Description of the illustration apex_syntax_highlight.png

Outline View

The structure of the current APEXlang document is displayed in the Outline view. This view enables you to quickly navigate to components and properties within the file. Description of apex_outline_view.png follows

Description of the illustration apex_outline_view.png

Hover

Provides documentation for properties and property values.

Description of apex_hover.png follows

Description of the illustration apex_hover.png

Diagnostics

Any syntax errors or warnings reported for a document are shown:

Description of apex_diagnostic.png follows

Description of the illustration apex_diagnostic.png

Code Completion

Code completion (CTRL+SPACE) in APEXlang suggests content that can be inserted at the current cursor location. Suggestions include property names, valid property values, references, and snippets. Description of apex_ui_code_completion.png follows

Description of the illustration apex_ui_code_completion.png

Code completion includes the following categories:

Embedded Language Support

APEXlang can contain embedded fragments of other languages, such as CSS, SQL, and PL/SQL. When the embedded text block is annotated with the language, SQL Developer for VS Code highlights the fragment using that language’s syntax rules.

For embedded SQL and PL/SQL, completion is provided by Oracle SQL support, including database objects such as tables and columns when a connection is attached. Description of apex_embedded_language_support_css.png follows

Description of the illustration apex_embedded_language_support_css.png

For embedded SQL and PL/SQL, completion is delegated to Oracle SQL support. When a database connection is attached, completion can include database objects such as tables and columns (for example, while editing a SELECT statement).

Description of apex_embedded_language_support.png follows

Description of the illustration apex_embedded_language_support.png

SQL Developer for VS Code provides navigation and refactoring actions for APEXlang components and references.

Quick Fixes

Quick fixes are offered for common issues detected while editing. Description of apex_quick_fixes.png follows

Description of the illustration apex_quick_fixes.png

For example:

Refactor Inline and Out-of-Line Embedded Language Source

Properties that contain multiline embedded language text can be stored either inline in the APEXlang file or out-of-line in a separate file.