Language support for Open Financial Exchange (OFX) files in Visual Studio Code.
Features
This extension provides syntax highlighting and language support for OFX (Open Financial Exchange) files, commonly used by financial institutions to exchange financial data.
Syntax Highlighting
Header fields: Highlights OFX header fields like OFXHEADER, DATA, VERSION, etc.
XML/SGML tags: Recognizes both XML-style tags with closing tags and SGML-style tags without explicit closing
Data types: Distinguishes between different value types:
Numeric values (integers and decimals)
Date/time values with timezone information
Currency codes (BRL, USD, EUR)
Transaction types (CREDIT, DEBIT)
Status values (INFO, WARN, ERROR)
Account types (CHECKING, SAVINGS)
Language Features
Document Formatting: Format OFX documents with proper indentation
Use Shift+Alt+F (Windows/Linux) or Shift+Option+F (Mac) to format
Right-click and select "Format Document"
Automatically handles both SGML and XML formats
Preserves header section formatting
Auto-closing tags: Automatically closes OFX tags
Bracket matching: Highlights matching opening and closing tags
Code folding: Fold/unfold OFX tag blocks for better readability
Indentation: Smart indentation for nested OFX structures
Comment support: Block comments using <!-- --> syntax
OFX Format Support
This extension supports both OFX formats:
SGML format (OFX 1.x): Tags without explicit closing
XML format (OFX 2.x): Standard XML with closing tags
Formatting OFX Files
To format an OFX document:
Open an .ofx file
Press:
Shift+Alt+F (Windows)
Ctrl+Shift+I (Linux)
⇧⌥F (Mac)
Or right-click in the editor and select "Format Document"
The formatter will:
Keep header lines (KEY:VALUE) unindented
Properly indent nested XML/SGML tags
Handle both OFX 1.x (SGML) and OFX 2.x (XML) formats
Configuration
This extension contributes the following settings: