A modern, fast, and joyful developer toolbar for Salesforce in Visual Studio Code — built to give developers 1-click speed, dedicated docked panels, interactive conflict resolution, and enterprise-grade deployment guards.

💡 About This Project
Bille's DevTools for Salesforce was created by Andreas Bille as a passion, spare-time project.
The purpose is straightforward: to build the ultimate developer experience for Salesforce developers working in VS Code. Rather than juggling complex terminal commands, slow menus, or risking accidental production overrides, Bille's DevTools puts 1-click execution buttons directly where you need them — on editor toolbars, in the status bar, and in dockable bottom panels that feel right at home alongside the Terminal and Output views.
⚡ Features & Capabilities
1. 🛡️ Folder Deployment Guard (New!)
- Accidental Mass-Deploy Protection: Never worry about accidentally right-clicking a folder (like
classes, lwc, or force-app) and deploying hundreds of files to Salesforce by mistake.
- Smart Component Counter: Recursively inspects the folder, filters out companion
-meta.xml files, and presents the real component count with sample file names.
- Modal Safety Alert: Prominently shows the target org, folder path, and file count with
Cancel (Recommended) focused as the safe default.
- Unified Protection Across All Entry Points:
- Bille's DevTools Deploy, Retrieve, and Delete commands.
- Standard Salesforce Extension Pack context menu actions (
SFDX: Deploy This Source to Org).
- Salesforce CLI terminal commands (
sf project deploy start -d ... / --source-dir) via automatic prerun interception hooks.
- Customizable Policy: Choose between
"confirm" (default modal prompt), "block" (strict block on all folder deployments), or "allow".
2. 🚀 Deploy This & Interactive "Deploy List of Components" TreeView (New!)
- Streamlined Context Menu: Clean right-click menu options in the Editor, Explorer, and Editor Tab:
Deploy This ($(cloud-upload)): Instantly deploys the active file, folder, or selection with safety checks, conflict detection, and folder deployment guards.
Deploy List of Components... ($(checklist)): Focuses the dedicated Deploy Components TreeView in Bille's DevTools sidebar.
- Native Checkbox TreeView (
billeDevtoolsDeployList):
- Automatically scans Git changes against
main (or any selected base branch) and groups files into metadata categories (Apex Classes, Apex Triggers, Lightning Web Components, Objects & Fields, Layouts & FlexiPages, Permissions & Profiles, Flows, Custom Labels).
- Pre-Checked by Default: All detected changes are pre-selected (
Checked). Easily toggle individual files or entire categories on and off.
- Toolbar Controls:
Deploy Selected ($(cloud-upload)): Deploys only the checked components in a single transaction via Salesforce CLI.
Select All ($(check-all)) & Deselect All ($(clear-all)): 1-click bulk selection toggles.
Change Base Branch... ($(git-branch)): Switch comparison branch (e.g., main, master, dev, origin/main) with workspace state persistence.
Refresh Changes ($(refresh)): Re-scans Git working tree and branch changes.
- Comprehensive Git Change Detection:
- All committed changes on your branch since branching off base (
main...HEAD).
- All uncommitted staged and unstaged edits in your working tree (
HEAD).
- Newly created untracked files (
git ls-files).
- Smart Metadata Filter: Automatically isolates deployable Salesforce source files inside your package directories (e.g.
force-app), ignoring non-metadata files like README.md, package.json, .gitignore, and documentation.
- Multi-Select in File Explorer: Select multiple files in the VS Code File Explorer, right-click, and choose Deploy This to deploy them all together.
- Dual-Mode Component Cockpit: Switch effortlessly between Deploy Mode (Git changes) and Retrieve Mode (Org metadata) directly inside the components window.
- Interactive Metadata Grid:
- Org Metadata Catalog: Lists all classes, triggers, LWCs, flows, custom objects, fields, and permission sets from your target Salesforce org.
- Author & Date Inspection: View
LastModifiedByName and LastModifiedDate (relative "2 hours ago" + full UTC tooltip) so you always know who changed what on the org.
- Branch Status Comparison:
[In Branch]: Component already exists in your local Git branch / workspace.
[Not in Branch]: New component in the org that does not exist in your workspace yet.
[Org Newer]: Org version is newer than your local file.
- Smart Filtering & Bulk Selection:
- Filter by Metadata Type (
ApexClass, Flow, LightningComponentBundle, CustomObject, etc.).
- Segmented status filter:
All, Only Not in Branch ★ (pre-selected for quick retrieval of new org components), and Only In Branch.
- Instant real-time search box filtering across names, types, and authors.
- Selective Retrieval & Windows CLI Guard:
- Retrieve checked components in safe batches (25 at a time) via
sf project retrieve start -m "...".
- Dirty Editor Guard: Warns if any local files have unsaved changes in VS Code before retrieval overskrives them.
- Auto-updates the metadata table and switches retrieved components to
[In Branch] immediately.
- Row Actions:
- 📄 Open: Directly open the matching local file in your editor.
- 👁️ Diff: View side-by-side diff between your local file and the remote org copy.
- ⬇️ Retrieve: Retrieve any individual component with 1 click.
- Quick Access:
- Quick Actions: Retrieve Org Metadata (
$(cloud-download)).
- Command Palette:
Bille's DevTools: Retrieve Org Metadata... (billeDevtools.retrieveOrgMetadata).
4. ⚡ In-Editor Merge Conflict Detection & Resolution
- Automatic Pre-Deploy Conflict Detection: Before deploying a file, Bille's DevTools verifies whether the remote file on the server has been modified by someone else since your last retrieve.
- Interactive 3-Way Merge Session: If a conflict is detected, standard Git-style conflict markers (
<<<<<<< Local, =======, >>>>>>> Server) are injected directly into your editor with backup preservation.
- CodeLens & Action Bar:
- 1-click Accept Current / Incoming / Both directly above each conflict block.
- Dedicated 🚀 Accept & Deploy button that validates that all conflict blocks have been resolved before deploying to the target org.
- 🔍 Compare Diff and ↩ Revert & Cancel to back out safely at any time.
5. 🔍 1-Click Diff Against Org
- Side-by-Side Diff View: Compare any local Apex class, trigger, LWC, component, or metadata file with the live version residing on your active target org with a single click (
Ctrl+Alt+D or toolbar icon).
- Remote Source Inspection: Spot differences, unwanted changes, or remote modifications without needing to retrieve or overwrite local files.
6. 🛡️ Protected Org Safety Guard (Enterprise Safeguard)
- Production & Protected Org Write Confirmation: Requires explicit confirmation before any deployment, source push, or metadata deletion touches a Production org or any org flagged with write protection.
- Salesforce CLI Hook Integration: Intercepts CLI commands run from the VS Code integrated terminal and external shells, requiring VS Code modal confirmation before execution.
- Sandbox / Scratch Org Awareness: Automatically enables write protection for Production orgs while keeping development in Sandboxes and Scratch Orgs frictionless.
7. ⚡ 1-Click Anonymous Apex Runner
- Scratchpad Launcher: Click
Anon Apex on the status bar or press Ctrl+Alt+N (Cmd+Alt+N on Mac) to open a dedicated Anonymous Apex scratchpad instantly.
- Toolbar Execution: Prominent Execute button in the editor title bar whenever viewing
.apex or .cls files (Ctrl+Alt+A or Ctrl+Enter).
- Selection Execution: Highlight any block of Apex code in any class or scratchpad and click
▶ Run Selection or press Ctrl+Enter (Cmd+Enter) to run only that selection.
- Header Directive Inheritance: Selected snippets automatically inherit
// @targetOrg: <alias> from the document header if not present in the selection.
- Smart Log Filter: Filters noisy execution logs to display only
USER_DEBUG statements, governor limits tables, and formatted exceptions.
- Docked Bottom Panel: Results appear docked as tabs in the bottom panel (alongside Terminal / Output) with optional side-by-side comparison.
8. 🔍 SOQL Query Scratchpad & Interactive Data Viewer
- 1-Click SOQL Runner: Open
.soql files or select any SOQL string and hit the Execute SOQL Query icon (Ctrl+Alt+Q or Ctrl+Enter).
- Run Selected Query: Highlight any query in a multi-query scratchpad and click
▶ Run Selected Query or press Ctrl+Enter (Cmd+Enter) to run only that query.
- Semicolon Resilience: Trailing semicolons (
;) from selections are trimmed automatically to prevent Salesforce SOQL syntax errors.
- Interactive Data Viewer: Clean tabular view of query results with record counts, sticky column headers, and 1-click Copy JSON and Copy CSV buttons.
- Direct Record Links: 1-click link to open any returned record ID directly in your Salesforce org.
- Query Library: Save and load frequently used SOQL queries directly from your project workspace (
Ctrl+Alt+Shift+S / Ctrl+Alt+Shift+O).
9. 🏢 Org Browser & Connection Manager
- Categorized Org Tree: Visual grouping for:
- Production & Developer Orgs (
login.salesforce.com)
- Sandbox Orgs (
test.salesforce.com)
- Scratch Orgs
- 1-Click Org Management:
+ Add Sandbox Org: Prompts for alias and launches browser login via test.salesforce.com.
🏢 Add Production Org: Prompts for alias and launches browser login via login.salesforce.com.
🔗 Add Custom Domain: Prompts for custom My Domain URL.
- Per-Org Actions:
- 🌐 Open in Browser: Direct 1-click launch to your org homepage.
- ★ Set as Default Target: Instantly make this org your default for deployments.
- 🛡️ Toggle Write Protection: Easily mark any org as protected to enforce confirmation dialogs.
- ⚙️ Open Setup: Jump straight into Salesforce Lightning Setup.
- 💻 Open Developer Console: Launch the Salesforce Developer Console in browser.
- 🗑️ Disconnect / Log Out: Cleanly log out and remove the org.
- Status Bar Indicator: Always displays your current active default org (
SF: <alias>). Click to switch anytime.
8. 📜 Debug Session & TraceFlag Control Center + Apex Replay Debugger (Updated in v0.1.61!)
- Debug Session Control Center Hub: Click Debug Session in Quick Actions (
billeDevtools.toggleRecordSession) to open a unified debugging hub:
- 🔴 Set Debugging on Current User (Myself): 1-click 15m
FINEST QuickStart/Renew or choose custom duration (15m–24h) and DebugLevel preset (billeDevtools.setDebugCurrentUser).
- ⚡ Set Debugging on Apex Classes & Triggers (
CLASS_TRACING):
- 1-Click Active File Tracing: Right-click any
.cls or .trigger file in Editor or Explorer (Set Class Debugging (TraceFlag) on Current File) to trace that class/trigger at FINEST without hitting Salesforce's 20 MB debug log limit.
- Multi-Select Class & Trigger Picker: Select multiple
ApexClass and ApexTrigger components (billeDevtools.setDebugClasses) with automatic USER_DEBUG assurance.
- 👤 Set Debugging on Another User: Search any active user in the org by name, username, email, or profile (
Ctrl+Alt+D / billeDevtools.setDebugUser).
- 🤖 Automated Process, Integration & Guest Users: Enable
TraceFlag logging on Automated Process (to capture Platform Event triggers & Flows), Platform Integration User, and Experience Cloud Guest Users.
- 🎛️ 4 DebugLevel Presets: Choose between Replay Debugger (
FINEST), Class Tracing Focused (Anti-20MB Truncation), Apex & SOQL Performance (PROFILING), and Flow & Automation (WORKFLOW_FINEST).
- 📋 Active TraceFlag Manager & Log Quota Cleanup: Inspect all active User & Class TraceFlags with expiration countdowns, extend (
+30m/+1h), stop all, or clear remote ApexLog records to free the 1,000 MB org quota (billeDevtools.manageActiveTraceFlags).
- Automatic Breakpoint-to-Checkpoint Promotion: Standard gutter breakpoints in
.cls (including @isTest unit tests) and .trigger files automatically register as Salesforce Checkpoints (condition: 'checkpoint') with 0ms overhead on normal test runs.
- Debug Log Search & Replay: Fast search through recent debug logs (
Ctrl+Alt+H) and 1-click launch into Apex Replay Debugger (Ctrl+Alt+Shift+L).
9. ⚡ LWC Live Preview Quick Action & Data Source Setup Assistant (Updated in v0.1.59!)
- 1-Click Quick Action: Click
⚡ LWC Live Preview in the Quick Actions sidebar view to immediately preview components or configure your environment.
- Component Auto-Discovery: Instantly searches your workspace for all local LWC components without manual file searching.
- Data Source & Mock Configuration (
FEAT-LWC-DATA-01):
- 🗄️ Live Org Records via SOQL: 1-click retrieval of recent records from your connected Salesforce org for the target SObject, binding real records to
@api recordId.
- 📋 Automatic Record ID Clipboard Copy: Selected Record IDs are automatically saved to
.lwcpreview.json and copied to your clipboard when preview starts for effortless paste.
- 📄 Local Mock Data Scaffolder (
mockData.json): Instantly scaffolds clean, realistic sample data templates for Account, Contact, Opportunity, Case, Lead, and custom objects (*__c) supporting both single records and list arrays.
- 🔄 1-Click Data Mode Toggle: Effortlessly toggle between live org queries and local offline mock data without modifying component source code.
- 🔍 Smart SObject Heuristics: Automatically detects component target SObjects from JS schema imports (
@salesforce/schema/), XML target configs, and template loops.
- Dual Preview Modes:
- 🖥️ Integrated VS Code Webview: Live side-by-side preview panel via the Salesforce Live Preview extension.
- 🌐 External Browser Dev Server: Real-time hot-module replacement (HMR) server via
sf lightning dev component.
- Full App & Site Previews: 1-click launch for full Lightning Experience Apps (
sf lightning dev app) or Experience Cloud LWR sites (sf lightning dev site).
- Environment Diagnostic & Setup Assistant: Automated verification for CLI plugins, extension dependencies, target org connection, and scratch org settings.
- 1-Click Scratch Org Auto-Configurator: Injects
enableLightningPreviewPref: true into project-scratch-def.json in a single click, eliminating setup errors.
- Context Menu Integration: Right-click any LWC component folder or file in Explorer or Editor to configure data source or live preview immediately (
Bille: Configure LWC Preview Data Source).
10. 🧭 Lightning Web Component Navigation & Companion Switcher (lwcnavigation) (New in v0.1.58!)
- Sub-Millisecond O(1) Workspace Indexer: Blazing fast in-memory indexing of all local LWC bundles (
.html, .js, .ts, .css, .js-meta.xml) with instant file-watcher updates.
- HTML Tag Navigation (F12 / Cmd-Click): Jump from custom component tags (e.g.
<c-order-summary-card> or <ns-custom-tag>) directly to the target component's bundle controller or template at the export default class line.
- Template Expression Navigation (F12): Pressing F12 on
{prop}, onclick={handleClick}, for:each={items}, or lwc:if={cond} in template HTML jumps straight to the matching @api, @wire, @track, getter, setter, or method in the companion JS/TS controller.
- Apex Wire & Method Import Navigation (F12): F12 on
@salesforce/apex/AccountController.getAccounts in JS controllers jumps straight into the Apex class at the @AuraEnabled method declaration.
- Schema & Metadata Imports (F12): Resolves
@salesforce/schema/Account.Name and @salesforce/messageChannel/Channel__c to workspace metadata XML files.
- Find Component References (Shift+F12): Locate all
<c-component-name> usages across all HTML templates in the workspace.
- Smart Companion Switcher (
Ctrl+Alt+O / Alt+O / Cmd+Alt+O):
- 2-Way Toggle: Instant 1-key toggle between
.html and .js / .ts when no stylesheet exists.
- QuickPick Companion Menu: Clean palette to jump between HTML, JS, CSS, and XML files, plus 1-click Create Stylesheet with
:host { display: block; } boilerplate.
- Editor Title Bar Action: Quick companion switcher button (
$(arrow-swap)) pinned in the editor title bar for all LWC files.
⌨️ Default Keyboard Shortcuts
| Shortcut (Windows / Linux) |
Shortcut (macOS) |
Command |
Description |
Ctrl+Alt+L |
Cmd+Alt+L |
billeDevtools.authorizeOrg |
Authorize an Org (Browser Web Login) |
Ctrl+Alt+N |
Cmd+Alt+N |
billeDevtools.openAnonymousApex |
Open Anonymous Apex Scratchpad |
Ctrl+Alt+A / Ctrl+Enter |
Cmd+Alt+A / Cmd+Enter |
billeDevtools.executeAnonymousApex |
Execute Anonymous Apex (or Selection) |
Ctrl+Alt+Shift+A |
Cmd+Alt+Shift+A |
billeDevtools.debugAnonymousApex |
Debug Anonymous Apex via Replay Debugger |
Ctrl+Alt+Q / Ctrl+Enter |
Cmd+Alt+Q / Cmd+Enter |
billeDevtools.executeSoqlQuery |
Run Active SOQL Query (or Selection) |
Ctrl+Alt+Shift+S |
Cmd+Alt+Shift+S |
billeDevtools.saveSoqlQuery |
Save Current SOQL Query |
Ctrl+Alt+Shift+O |
Cmd+Alt+Shift+O |
billeDevtools.loadSoqlQuery |
Load Saved SOQL Query |
Ctrl+Alt+S |
Cmd+Alt+S |
billeDevtools.saveApexScript |
Save Anonymous Apex Script |
Ctrl+Alt+O / Alt+O |
Cmd+Alt+O / Alt+O |
billeDevtools.switchLwcCompanion |
Switch LWC Companion File (HTML ⟷ JS/CSS) |
Ctrl+Alt+O |
Cmd+Alt+O |
billeDevtools.loadApexScript |
Load Saved Anonymous Apex Script |
Ctrl+Alt+D |
Cmd+Alt+D |
billeDevtools.setDebugUser |
Set Debug User / Trace Flags |
Ctrl+Alt+H |
Cmd+Alt+H |
billeDevtools.searchDebugLogs |
Search & Download Debug Logs |
Ctrl+Alt+Shift+L |
Cmd+Alt+Shift+L |
billeDevtools.replayLatestLog |
Replay Latest Debug Log |
Ctrl+Alt+Backspace |
Cmd+Alt+Backspace |
billeDevtools.cancelCurrentOperation |
Cancel Active Deployment/Execution |
⚙️ Configuration Settings
| Setting |
Default |
Description |
billeDevtools.deployGuard.preventFolderDeployment |
"confirm" |
Controls folder deployment protection: "confirm" (modal alert), "block" (strictly disallowed), or "allow". |
billeDevtools.enableCliDeploymentGuard |
true |
Intercepts deployments from Salesforce CLI and VS Code to require confirmation on protected orgs. |
billeDevtools.resultsLocation |
"bottom" |
Where to display execution results: docked as tabs in the "bottom" panel or "beside" in the editor. |
billeDevtools.openExecutionWindowWithScratchpad |
true |
Automatically open a dedicated execution tab when a scratchpad is opened. |
billeDevtools.showOnlyUserDebug |
true |
Filters Anonymous Apex logs to display only USER_DEBUG lines by default. |
billeDevtools.autoOpenOutputOnRun |
true |
Automatically focus the execution panel when running Apex. |
billeDevtools.logLevel |
"DEBUG" |
Default debug log level for Apex execution. |
🛠️ Requirements & Setup
Bille's DevTools works seamlessly alongside the official Salesforce CLI:
- Salesforce CLI (
sf): Bille's DevTools automatically detects and uses your authenticated orgs from the sf CLI.
- Standalone / Demo Mode: If the CLI is not yet connected on the machine, Bille's DevTools provides simulated execution so you can explore all buttons, views, and panels immediately.
☕ Support the Project
If Bille's DevTools for Salesforce saves you time, helps you ship faster, or makes your daily Salesforce developer workflow in VS Code more enjoyable, please consider buying me a coffee!

Every contribution is deeply appreciated and fuels new features, bug fixes, and continuous updates. Thank you! 💙
⚠️ Disclaimer
[!CAUTION]
Use at your own risk: This extension is an independent, personal spare-time / community project developed for fun and convenience. It is not an official Salesforce product, nor is it endorsed, certified, or sponsored by Salesforce, Inc.
No Liability: The author (Andreas Bille) is not responsible or liable for how users choose to utilize this extension, code executed against Salesforce environments, metadata deployments, data mutations, deletions, or any other consequences resulting from its use. Users are solely responsible for testing and validating their actions in sandboxes before executing anything in production.
📄 License
This project is licensed under the MIT License.
Copyright (c) 2026 Andreas Bille
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
| |