Skip to content

Context Menu to make Developing for Salesforce Commerce Cloud Easier

License

Notifications You must be signed in to change notification settings

sfccdevops/sfcc-vscode-extension

Repository files navigation

Project Support

If you or your company enjoy using this project, please consider supporting my work and joining my discord. 💖

Become a GitHub Sponsor Become a Patreon Sponsor Donate via PayPal Join Discord Community


Logo

VS Code Extension

Context Menu to make Developing for Salesforce Commerce Cloud Easier:

  • Quickly Search SFCC Docs for Selected Text from ISML and JS Files
  • Open Content Assets in Business Manager from ISML Files
  • Open Slots in Business Manager from ISML Files

Setup

You probably already have everything else you need, though we do add a new sitecode property to the dw.json as it is required for opening Slots & Content Assets in Business Manager.

  1. Make sure you install Prophet Debugger
  2. Edit the dw.json file in your VS Code Workspace Root Folder
  3. Add a new sitecode property ( Administration > Sites > Manage Sites then copy the ID attribute for the one you use most )

Final JSON should look something like this:

{
  "hostname": "dev01-web-sandbox.demandware.net",
  "username": "[email protected]",
  "password": "supersecret",
  "code-version": "version1",
  "sitecode": "myclient-us"
}

Usage

Searching SFCC Docs

This works in any .isml of .js file. Select the text you want to lookup, right click it, and select Search SFCC Docs.

demo

Open in Business Manager

This works in any .isml file. Select the entire isslot or iscontentasset HTML node ( tripple click to select an entire line ), right click it, and select Open in BM

demo

Developer Overview

Here is how you can work on this extension on your local machine:

  1. Clone this repo to your local machine git clone https://github.com/sfccdevops/sfcc-vscode-extension.git
  2. Open sfcc-vscode-extension folder in VS Code
  3. Open the extension.js file
  4. Press the F5 key to build & launch a new instance of VS Code
  5. This extension will be installed the new instance for you to play with

Disclaimer

The trademarks and product names of Salesforce®, including the mark Salesforce®, are the property of Salesforce.com. SFCC DevOps is not affiliated with Salesforce.com, nor does Salesforce.com sponsor or endorse the SFCC DevOps products or website. The use of the Salesforce® trademark on this project does not indicate an endorsement, recommendation, or business relationship between Salesforce.com and SFCC DevOps.