SFCC Snippet – VS Code Extension for Salesforce Commerce Cloud Developers
Introduction
I really liked SFCC (Salesforce Commerce Cloud) once I started working on it more and more. SFCC contains so many APIs and packages to deal with the whole platform as per our needs.
Table of Contents
While working on complex code, it is also important that developers follow the proper code structure with correct error and output handling.
To make such tasks easier, I thought of building this VS Code extension, which helps developers quickly add SFCC code snippets of their choice — based on their requirement.
👉 The extension can be found here: Download the SFCC Snippet Extension
How to Use the SFCC Snippet Extension
As of now, it works based on pre-defined snippets that are included in the extension. You need to open your JavaScript file and simply type:
!sfcc_getOrderByNumberAnd that’s it! You will see such an output:


Contribution
For starting purposes, I have added only one sample code snippet. Since the code is hosted publicly on GitHub, feel free to create a PR with your suggestions.
👉 GitHub Repository: https://github.com/savankoradia/SFCC-Snippet
There are 2 ways to contribute:
- Create a PR with a new snippet.
- Send an email with your suggested new snippet, and I will try to add it in the next version. Email: [email protected]
Note: All the snippets are listed here — 🔗 https://github.com/savankoradia/SFCC-Snippet/blob/master/snippets/snippets.code-snippets
Suggestions
If you have any suggestions to improve this extension, your comments are most welcome.
Important Links and Contact
- VS Code Extension: SFCC Snippet Extension
- GitHub Repository: https://github.com/savankoradia/SFCC-Snippet
- Email: [email protected]
