VS Code Configuration
Why Visual Studio Code?
Visual Studio Code (VSCode) is a free, cross-platform code editor with a strong plug-in community which extends its capabilities. Salesforce has created plug-ins to work with VSCode and has become the preferred editor for editing code with SFDX.
Visual Studio Code can be used by both developers and QA staff alike.
VS Code SFDX Setup
GIT
The from GitHub is a great resource for setting up and configuring GIT
Mac Users - You may want to consider
Download VS Code
Getting a workstation setup with VSCode and configured for Salesforce development is a straightforward approach, the steps below outline what is needed to perform regardless if the developer or quality assurance engineer is running on a PC or a Mac.
Download and Install Visual Studio Code
Java 11 Platform, Standard Edition Development Kit Some features in Salesforce Extensions for VS Code depend upon (Standard Edition Development Kit (JDK))
Connect VS Code to Azure DevOps GIT Repos
Learn DX
You may want to follow this trail to get familiar with Salesforce DX
Salesforce SFDX Setup
Salesforce needs to be configured to enable SFDX. This is a one-time setup for the Developer org.
Setup and G2P in your Salesforce edition
Navigate to Setup > Settings > Development > Dev Hub
Move the slider to enable Dev Hub and G2P Packaging
Additional VS Code Plugins for SFDX Projects
- Provides realtime feedback on writing better code.
Connects with (free for public projects ~$10/mo for most Salesforce projects)
VS Code Configurations
Automatically push code to org when saving:
salesforcedx-vscode-core.push-or-deploy-on-save.enabled to true.
Trailhead Module:
-- Valerie Belova