Uniface Syntax
Syntax highlighting and code snippets (127+) for Uniface Script in Visual Studio Code.

Uniface Classic Theme
For a complete Uniface IDE experience, switch to the Uniface Classic color theme:
- Open Command Palette (
Ctrl+Shift+P)
- Type "Color Theme" and select Preferences: Color Theme
- Choose Uniface Classic Light/Dark mode
Features
Syntax Highlighting
Full syntax highlighting for Uniface Script with support for:
- Keywords and control flow statements
- Built-in functions (
$concat, $status, $procerror, etc.)
- Variable declarations with type annotations
- Parameter direction modifiers (
:in, :out, :inout)
- String interpolation (
%%variable%%%)
- Comments (
; and #Comment markers)
- Operators and literals
Code Snippets
Quickly insert common UScript/ProcScript patterns:
| Prefix |
Description |
entry |
Full entry point with params and variables |
params |
Parameters block |
variables |
Variables block |
if |
If statement |
ifelse |
If-else statement |
while |
While loop |
for |
For loop |
forentity |
ForEntity loop |
selectcase |
Select case statement |
call |
Call operation |
activate |
Activate component |
selectdb |
SelectDB pattern |
putmess |
Put message |
errorhandling |
Error handling pattern |
Language Configuration
- Comment toggling with
Ctrl+/
- Bracket matching and auto-closing
- Code folding for blocks (
entry/end, params/endparams, etc.)
Uniface XML Support
Enhanced support for Uniface XML export files with:
- Embedded UScript/ProcScript highlighting within XML
- Auto-folding of XML structure on file open
- Dimmed XML tags to emphasize UScript/ProcScript code
- Toggle visibility commands for clean code review
Syntax Colors
The extension applies Uniface IDE-style colors that work with any VS Code theme:
| Element |
Color |
Example |
| Keywords |
Blue |
entry, end, if, while, call |
| Data types |
Pink |
string, numeric, boolean, date |
| Direction modifiers |
Magenta |
:in, :out, :inout |
| Built-in functions |
Blue |
$concat, $status, $procerror |
| System variables |
Blue |
$$user, $$sysdate |
| Strings |
Purple |
"text", 'text' |
| Comments |
Green |
; comment |
| Comment markers |
Teal |
#Comment |
Uniface XML Commands
When working with Uniface XML export files, use these commands:
| Command |
Shortcut |
Description |
| Toggle XML Visibility |
Ctrl+Shift+U |
Show/hide XML dimming |
| Clean View |
Ctrl+Shift+H |
Hide XML, show only UScript/ProcScript |
| Fold All XML |
Command >Fold All |
Collapse all XML structure |
Supported File Types
| Extension |
Description |
.prc |
UScript/ProcScript files |
.uscript |
UScript files |
**/[A-Z]*[0-9]*.xml |
Uniface XML export files |
Installation
From VS Code Marketplace
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X)
- Search for "Uniface Syntax"
- Click Install
From VSIX File
- Download the
.vsix file
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X)
- Click the
... menu and select Install from VSIX...
- Select the downloaded file
Requirements
- Visual Studio Code 1.75.0 or higher
Documentation
For more information about Uniface Script/ProcScript, see the official Uniface documentation.
Author
Andrew Noorden
Built for Uniface developers who want a modern editing experience.
| |