A lightweight VS Code extension for running ad-hoc anonymous Apex against any
authenticated Salesforce org — available both in the Activity Bar sidebar and
the bottom panel (next to Terminal).
Features
Multi-tab editor — each tab keeps its own Apex source and persists across
VS Code restarts (per workspace).
Org switcher — pick any org already authenticated with the Salesforce CLI
(sf); the default org is pre-selected on first launch.
One-click execution — Run button or Ctrl+Enter / Cmd+Enter executes
the active tab as anonymous Apex.
Structured debug log viewer — execution logs are parsed and displayed with
per-category filter checkboxes (USER_DEBUG, SOQL, DML, EXCEPTION, SYSTEM).
Automatic trace flags — a DEVELOPER_LOG trace flag is created for your
user before each run if one isn't already active, so you always get full logs
without manual setup.
Two panel locations — use the ⚡ icon in the Activity Bar for a sidebar
panel, or open the "Apex Editor" tab in the bottom panel area (next to
Terminal / Output).
Requirements
VS Code ^1.105.0
Salesforce CLI (sf)
installed and on your PATH, with at least one authenticated org
(sf org login web).
Usage
Authenticate at least one org: sf org login web
Open the Apex Editor from the Activity Bar (⚡) or the bottom panel.
Select your target org from the dropdown.
Write Apex in the editor and press Run (or Cmd+Enter).
Results and debug logs appear in the panels below.