Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>MDAPI DiffNew to Visual Studio Code? Get it now.
MDAPI Diff

MDAPI Diff

Ali AKil

|
3 installs
| (0) | Free
Professional Salesforce metadata comparison tool for VS Code. Compare local MDAPI files with Salesforce org metadata. No telemetry. Org content stays in memory via virtual documents.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. Install the extension
  2. Open a Salesforce project in VS Code
  3. Authenticate with your org: sf org login web
  4. 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! 🚀

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft