A Visual Studio Code extension that provides enhanced language support for Opacc BlockScript and F-Script. For more information, visit www.opacc.ch.
NEW: Single extension for BlockScript and F-Script
Starting with this release, F-Script is fully supported by this extension. If you still have the separate "Opacc F-Script" VS Code extension installed, it may conflict with this combined extension — please uninstall the separate F-Script extension to avoid issues.
To uninstall: open the Extensions view, search for Opacc F-Script, and click "Uninstall".
Compatibility
Compatible with OpaccERP version 25.02.
Features
Syntax highlighting
Opacc BlockScript
Opacc F-Script (including embedded BlockScript)
Snippets
Includes snippets for all Block- and APS-functions.
Hover Documentation
Rich hover information sourced from bundled markdown documentation.
Dynamic generation of function hovers for BlockScript built-ins using static/blockfunctions.json with:
Sample invocation signature
Argument list (type mapping, optional & default values)
Direct link to the online manual page for the function (configurable template)
Keybindings
Ctrl+1: TEMPLATE: BlockScript 'New File' for System_RunScriptBlock
Ctrl+2: TEMPLATE: BlockScript 'New Function'
Ctrl+Shift+I: Search in Opacc Manuals
Ctrl+Shift+NumPadSubtract: editor.foldAll
Ctrl+Shift+NumPadAdd: editor.unfoldAll
Search in Opacc Manuals
Quickly search the Opacc documentation directly from your editor:
Right-click in any BlockScript or F-Script file and select "Search in Opacc Manuals" from the context menu
Select text to search for it, or leave nothing selected to be prompted for search text
Opens the search results in your default browser
The search URL can be customized in VS Code settings under blockscript.opaccManualsSearchUrl. The default URL template supports placeholders:
%SearchText% - replaced with your search query
%OxasDocVersion% - replaced with the OXAS version (dots removed)
Themes
Includes the Opacc dark theme.
Highlighting is compatible with most default themes such as Monokai and Dark+.