Salesforce DX and VSCode
Install VSCode
- Download the Visual Studio Code
- Run the installer
Install Salesforce DX CLI
- Download the Salesforce DX CLI
- Run the installer
Installing Salesforce Extensions for VSCode
- Install the Salesforce Extension Pack
Install Java Standard Edition Development Kit 8
- Install Java from Java SE Development Kit 11 Downloads
- Confirm Java is properly installed by locating its installation directory, e.g.
C:\Program Files\Amazon Corretto\jdk11.0.8_10
Configure Java Home Setting for Apex Support
Next we need to set the salesforcedx-vscode-apex.java.home setting to point the Java installation directory.
- In Visual Studio Code, click File > Preferences > Settings
- Enter
apex javain the search box, then under the Salesforcedx-vscode-apex > Java - Change the
salesforcedx-vscode-apex.java.homesetting to the full path to your Java installation directory identified in the previous step. Note that for Visual Studio Code settings, the backslashes must be escaped (\\) but forward slashes (/) don’t.
Other Extensions to Install
Updating the Salesforce DX CLI
Using the command line run:
sfdx update