Before you get started, install the required software on your computer.
Visual Studio Code
Install Visual Studio Code on any computer running macOS, Windows, or Linux. VS Code’s system requirements are fairly small, so it should run well on most computers.
To install Visual Studio Code visit https://code.visualstudio.com and click the big green Download button. After the download finishes, open the installer and follow the steps to complete the installation.
Salesforce Extensions for Visual Studio Code
Install the Salesforce Extension Pack extension from the Visual Studio Marketplace. The extension pack contains additional features that help you develop Salesforce apps using Visual Studio Code.
To install the extensions, visit https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode and click the green Install button. The installation process prompts you to open Visual Studio Code. After Visual Studio Code opens, a dialog box opens in the lower right corner, asking you to install the extension. Click Install to proceed.
After the extensions are installed, you see a blue Reload button. To reload Visual Studio Code and finish the installation, click the button (or close and reopen Visual Studio Code).
Salesforce CLI is used to execute commands against Salesforce orgs and work with source files on your local machine. Salesforce Extensions for VS Code uses Salesforce CLI behind the scenes, so even if you don’t want to use the CLI directly you need to install it on your machine.
For information about installing Salesforce CLI, see the Salesforce DX Setup Guide.
Java Platform, Standard Edition Development Kit
Some features in Salesforce Extensions for VS Code depend upon the Java Platform, Standard Edition Development Kit (JDK). You need to have either version 8 or version 11 of the JDK installed. See Java Setup for details.