Development Best Practices
  • Home
  • Clean Code
  • Apex
    • Naming Conventions
    • Triggers
    • Unit Testing
    • Principles
      • KISS
      • DRY
      • Single Responsibility
      • Open/Closed
      • YAGNI
    • Patterns
    • SOQL
    • Exception Handling
    • Magic Strings
  • Lightning Components
    • Aura
    • LWC
  • Automation
    • Process Builder
  • Salesforce DX and VSCode
  • Git Source Control
    • Install Git
    • Using Git
    • Development Workflow
      • The Rules
    • Feature Branch Workflow
Powered by GitBook
On this page
  • Install VSCode
  • Install Salesforce DX CLI
  • Installing Salesforce Extensions for VSCode
  • Install Java Standard Edition Development Kit 8
  • Configure Java Home Setting for Apex Support
  • Other Extensions to Install
  • Updating the Salesforce DX CLI
  • Reference

Salesforce DX and VSCode

PreviousProcess BuilderNextGit Source Control

Last updated 4 years ago

Install VSCode

  1. Download the

  2. Run the installer

Install Salesforce DX CLI

  1. Download the

  2. Run the installer

Installing Salesforce Extensions for VSCode

  1. Install the

Install Java Standard Edition Development Kit 8

  1. Install Java from

  2. 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.

  1. In Visual Studio Code, click File > Preferences > Settings

  2. Enter apex java in the search box, then under the Salesforcedx-vscode-apex > Java

  3. Change the salesforcedx-vscode-apex.java.home setting 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

Reference

Visual Studio Code
Salesforce DX CLI
Salesforce Extension Pack
Java SE Development Kit 11 Downloads
Apex PMD
ESLint
GitLens
Todo Tree
Git Graph
GitHub Pull Requests
Salesforce Trailhead: Set Up Visual Studio Code