-
Notifications
You must be signed in to change notification settings - Fork 5
Configuring VS Code for SFDX
Visual Studio Code (VSCode) is a free, cross-platform code editor with a strong plug-in community to extend its capabilities. Salesforce has created plug-ins to work with Visual Studio Code and has become the preferred editor for editing code with SFDX.
SFDX development is performed in a Scratch Org which is an empty Salesforce Environment; unlike a sandbox, the Scratch Org will have no data in it when it is created. To ensure data is available in a Scratch Org to support development and testing it will have to be scripted in.
Visual Studio Code can be used by both developers and QA staff alike.
- Setup Dev Hub and G2P in your Salesforce edition
- Navigate to Setup > Settings > Development > Dev Hub
- Move the slider to enable Dev Hub and G2P Packaging
- Download and Install Visual Studio Code
- Install the official Salesforce Extension Pack into Visual Studio Code.
- From a command prompt in Visual Studio Code issue
sfdx force:auth:web:loginto log into the Dev Hub using the CLI, which will authorize you to create scratch orgs.
Note: A good template to use when making a project from scratch: https://github.com/sfdx-isv/sfdx-falcon-template
-- Valerie Belova
- Introduction
- Quality Hooks
- Approvals
- Promotion Automation
SFDX Package Development
Developer Machine Setup
Extras