Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Salesforce Custom Label ViewerNew to Visual Studio Code? Get it now.
Salesforce Custom Label Viewer

Salesforce Custom Label Viewer

Drexlab

|
14 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🔖 Salesforce Custom Label Viewer for VS Code

This extension allows Salesforce developers to quickly preview the value of a CustomLabel directly in the editor by hovering over its usage in Apex or LWC code.

✨ Features

  • ✅ Hover Preview: Hover over System.Label.LabelName (Apex) or @salesforce/label/c.LabelName (LWC) to see the label’s value.
  • 🔍 Retrieve Missing Labels: If the label is not found locally, you can retrieve it from the currently authenticated Salesforce org with a single click.
  • ♻️ Refresh Value: Update a label’s value from the org by clicking the Refresh from Salesforce button in the hover popup.
  • 📋 Copy to Clipboard: Instantly copy the full label value using the Copy button in the hover popup.
  • ⚙️ Fully Configurable: Users can modify extension behavior from VS Code’s settings panel.

⚙️ Configuration Options

You can customize the extension behavior by going to:

File > Preferences > Settings > Extensions > Salesforce Labels Viewer

Here are the current settings available:

Setting Description Default
maxHoverLength Max characters to show in the hover tooltip before truncating. 400

💡 Usage Example

String emailSubject = System.Label.AAO_Consumer_Receive_Email;

Hovering over the label will show:

🔖 Local Value: "Thank you for your interest. We will contact you soon..."

📋 Copy | 🔄 Refresh from Salesforce

If not found locally:

❌ Label not found locally

🔍 Retrieve label from Salesforce

📦 Roadmap (Coming Soon)

  • Label editing & saving support directly from hover

🧪 Requirements

  • Salesforce CLI (sf) must be installed and authenticated in your environment.
  • Your project should follow a standard Salesforce DX structure.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft