Overview Version History Q & A Rating & Review
MDAPI Diff
Professional Salesforce metadata comparison tool for VS Code. Compare local MDAPI files with Salesforce org metadata instantly.
Features
Right-click Compare : Compare any Salesforce metadata file with your org version
Smart Caching : Reduces org access requests with intelligent caching
Whitespace-Aware : Optional whitespace-aware diff comparison
Private Files : Retrieved org files stay in memory - never written to disk
Backup Creation : Automatic backups when applying org changes
Error Recovery : Comprehensive retry mechanisms and error handling
Supported File Types
Supports all major Salesforce metadata types including:
Apex Classes (.cls)
Apex Triggers (.trigger)
Visualforce Pages (.page)
Lightning Components (.cmp, .app)
Custom Objects (.object)
Flows (.flow)
Permission Sets (.permissionset)
And many more...
Getting Started
Install the extension
Open a Salesforce project in VS Code
Authenticate with your org: sf org login web
Right-click any metadata file and select "MDAPI Diff"
Requirements
Salesforce CLI installed and configured
Authenticated connection to at least one Salesforce org
Extension Settings
This extension contributes the following settings:
mdapiDiff.enabled
: Enable/disable the extension
mdapiDiff.ignoreWhitespace
: Ignore whitespace differences in diff view
mdapiDiff.orgCacheDuration
: Cache duration for connected orgs
mdapiDiff.createBackups
: Create backup files before applying changes
Commands
MDAPI Diff : Compare local file with org version
Select Salesforce Org : Choose which org to compare against
Refresh Connected Orgs : Refresh the list of available orgs
Release Notes
1.0.3
Initial release with full Salesforce metadata comparison capabilities.
Enjoy comparing your Salesforce metadata! 🚀