Opacc Scripting VS Code Extension 26.1
A Visual Studio Code extension for Opacc BlockScript and F-Script with syntax support, completions, hover documentation, signature help, templates, snippets, and quick access to Opacc manuals.
Successor of the legacy Opacc F-Script and Opacc BlockScript extensions
This extension supersedes the legacy "Opacc F-Script" and "Opacc BlockScript" extensions. If one of the legacy extensions is still installed, it can conflict with this extension.
Features
Language support
- Syntax highlighting for Opacc BlockScript
- Syntax highlighting for Opacc F-Script, including embedded BlockScript blocks
- Built-in language configuration for indentation, folding, bracket behavior, and editor defaults tailored to both languages
- Automatic saving of BlockScript and F-Script files as UTF-8 with BOM
Note: Full syntax highlighting is only available when using the included Opacc theme. Some highlighting details may not look correct with other themes.
IntelliSense and documentation
- Code completion for BlockScript snippets
- Code completion for Block functions
- Code completion for APS functions
- Code completion for Application Objects
- Hover documentation for Block functions, APS functions, IBOS commands, Application Objects, and built-in snippet content
- Signature help for Block functions and APS functions in BlockScript
- Signature help for IBOS calls and Application Object calls in F-Script
- Scope-aware behavior in F-Script: BlockScript assistance is offered inside embedded block scopes, while F-Script specific IBOS and Application Object help is offered outside those scopes
- Documentation links from hover and completion items, with support for opening manuals in the integrated browser, an embedded view, or the external browser
Snippets and templates
- Templates for new BlockScript files and new functions
- Static F-Script snippets for common script structures, conditions, comments, services, libraries, and APS functions
- Function-style completions can be shown either as plain functions or as snippets with pre-filled argument placeholders
Productivity commands
- Search in Opacc Manuals
Search the manuals from the editor context menu or command palette. The command uses the selected text when present, otherwise it prompts for input.
- Search & Insert Function / IBOS / Object
Search across Block functions, APS functions, IBOS commands, and Application Objects, then insert the selected item directly at the cursor.
- Paste as variable assignment code
Convert comma-separated clipboard content into variable assignment code for either BlockScript or F-Script. The command adapts to the current scope and can generate
GetColValByName(...), XQRS(...), or XRES(...) patterns.
Theme
- Includes the
Opacc dark theme
Supported file types
BlockScript
F-Script
.ff
.fs
.fss
.fx
.lb
.lbd
.lbf
.lbe
.lbi
.lbx
.lb51
.lb53
.lb54
.lb55
.config
Keybindings
BlockScript
Ctrl+1: Insert template for a new file
Ctrl+2: Insert template for a new function
Ctrl+Shift+NumPadSubtract: Fold all
Ctrl+Shift+NumPadAdd: Unfold all
F-Script
Ctrl+1: Insert F-Script file content template
Ctrl+2: Insert BlockScript Main template
Ctrl+3: Insert BlockScript Simple template
Ctrl+/: Insert F-Script brackets
Settings
The extension contributes the following settings:
opaccscripting.opaccManualsSearchUrl
URL template for manual search requests. Supports %SearchText% and %OxasDocVersion% placeholders.
opaccscripting.opaccManualsBlockFunctionUrl
URL template for direct Block function manual pages. Supports %FunctionName% and %OxasDocVersion%.
opaccscripting.opaccManualsIbosUrl
URL template for direct IBOS manual pages. Supports %manualsKey% and %OxasDocVersion%.
opaccscripting.openManualsMode
Controls whether documentation opens in the integrated browser, an embedded integrated view, or the external browser.
opaccscripting.blockFunctionsCompletionMode
Controls whether Block functions appear as snippets, plain function completions, or are disabled.
opaccscripting.apsFunctionsCompletionMode
Controls whether APS functions appear as snippets, plain function completions, or are disabled.
opaccscripting.applicationObjectsCompletionMode
Controls whether Application Objects appear as snippets, plain completions, or are disabled.
Commands
Scripting: Insert: Template New File
Scripting: Insert: Template New Function
Scripting: Search in Opacc Manuals
Scripting: Paste as variable assignment code
Scripting: Search & Insert Function / IBOS / Object
Notes
- In F-Script files, BlockScript completions and hovers are only active inside embedded block scopes.
- Application Object and IBOS assistance is focused on regular F-Script code outside embedded block scopes.
- The extension also applies editor defaults such as UTF-8 BOM encoding, folding support, tab size, and quick suggestions for both supported languages.
🎉 Happy scripting!
| |