Xojo Syntax Support

Xojo Syntax Support

VS Code Extension Xojo 言語

XojoコードのVS Code開発体験を向上

Xojoプログラミング言語向けのVS Code拡張機能。シンタックスハイライトとアウトライン表示(DocumentSymbolProvider)を提供し、.xojo_code・.xojo_window・.xojo_menu・.xojo_scriptファイルのコーディングをサポートします。macOSではXojoとの連携機能(F5でリロード&実行)も利用できます。

v0.9.0 · 2025/10/4

最新の更新 · v0.9.0 · 2025/10/4

  • Added outline support for the menu hierarchy in .xojo_menu files.
  • Implemented parseXojoMenuSymbols to parse the nested structure Begin MenuBegin DesktopMenuItem.
  • Assigned a SymbolKind per menu item type (DesktopMenuItem, DesktopQuitMenuItem, DesktopApplicationMenuItem, etc.).
  • Reads the Text attribute and shows it as the detail for each menu item.
  • Represents separators (Text = "-") as SymbolKind.Null.
  • Verified menu hierarchy display with the MainMenuBar.xojo_menu sample.

0.8.0

  • Implemented multi-level handling for #tag Events blocks so events of nested controls are correctly parented.
  • Extended parseCommonTagBlocks to support hierarchical array-style controlsByName.
  • Automatically builds control paths (parent chains) and prefers the nearest scope when duplicate control names exist.
  • Manages control info in {name, path, symbol} form inside parseXojoWindowSymbols.
  • Verified hierarchical events using the settingWindow.xojo_window sample's #tag Events blocks.

0.7.0

  • Enhanced .xojo_window control hierarchy detection to display parent-child relationships based on the InitialParent attribute.
  • Improved nesting so children appear properly under container controls like DesktopTabPanel.
  • Added the settingWindow.xojo_window sample to provide a test environment for hierarchical control structures.

0.6.0

  • Expanded .xojo_code outline to support top-level objects other than Class (Module / Interface / Structure / Enum).
  • Implemented parseXojoObjectSymbols to automatically apply suitable grouping per object type.
  • Added sample files: SampleModule.xojo_code, SampleInterface.xojo_code, SampleStructure.xojo_code, SampleEnum.xojo_code.

0.5.0

  • Added Xojo Reload and Run feature (macOS only).
  • Added F5 execution via a debug provider.

0.1.0

  • Initial release: minimal highlighting (comments / strings / numbers / keywords / types).
すべての更新履歴 →

Xojoのコードが、VS Codeで輝く。

ハイライト、アウトライン、ワンクリック実行。Xojo開発に必要なすべてを。

シンタックスハイライト

コメント(' / REM / // / #)・文字列・数値・制御キーワード・宣言キーワード・プリミティブ型・関数名(宣言/呼び出し)の色分けハイライト表示に対応します。

アウトライン表示(.xojo_code)

.xojo_codeファイルのClass/Module/Interface/Structure/Enum → Methods/Properties/Events/Constants の階層構造をアウトラインに表示。オブジェクト種別ごとに自動グループ化します。

アウトライン表示(.xojo_window)

.xojo_windowファイルのWindow → Controls → Events/Methods/Properties/MenuHandlers の階層を表示。InitialParent属性による親子関係を正確に検出します。

アウトライン表示(.xojo_menu)

.xojo_menuファイルのメニュー階層を再帰的に解析してアウトラインに表示。複雑なメニュー構造でも階層関係を一目で把握できます。

Xojo 連携機能(macOS)

macOS環境限定でXojoとの連携機能を提供。F5キーでXojo Reload and Runを実行し、launch.jsonを自動生成してVS CodeからXojoプロジェクトを素早く起動できます。

対応ファイル形式

.xojo_code・.xojo_script・.xojo_window・.xojo_menu の全Xojoファイル形式に対応。汎用コードファイルでは Sub/Function/Method/Event/Delegate のフラットリストを表示します。