Installation Instructions
Install all the tools listed here to get started with Salesforce development in VS Code.
Install Visual Studio Code on any computer running macOS, Windows, or Linux. VS Code’s system requirements are fairly small, so it runs well on most computers.
To install Visual Studio Code visit https://code.visualstudio.com and click the Download button. After the download finishes, open the installer and follow the steps to complete the installation. The minimum Visual Studio Code version required for the Salesforce Extension Pack is 1.90.
We recommend that you use Salesforce Extension Pack versions earlier than 59.15.0 if you aren't able to update your version of VS Code. Note that we aren't able to support fixes for these earlier versions.
Want to develop locally? Already using VS Code? Install Salesforce Extensions and Salesforce CLI to develop quickly and more productively on Salesforce platform.
Install the Salesforce Extensions from the VS Code Marketplace. The extensions are also available in the Open VSX Registry.
Salesforce CLI is used to execute commands against Salesforce orgs and work with source files on your local machine. Salesforce Extensions for VS Code and Agentforce Vibes IDE 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 CLI Setup Guide.
If you're working behind a corporate proxy or firewall, you must configure proxy settings for the Salesforce Extensions to connect to your Salesforce orgs.
Salesforce CLI (and therefore the Salesforce Extension pack) uses the HTTP_PROXY and HTTPS_PROXYenvironment variables to route traffic through a proxy server. VS Code’s built-in proxy setting (http.proxy) doesn’t automatically apply to the Salesforce Extensions, so we recommend disabling it from Settings > Application > Proxy:
http.proxySupport: off
Then set the environment variables before launching VS Code.
macOS/Linux
Set the environment variables in the configuration file for the shell you use, such as ~/.zshrc, ~/.bashrc, or ~/.bash_profile.
export HTTP_PROXY=http://username:password@proxy.company.com:port
export HTTPS_PROXY=http://username:password@proxy.company.com:port
Then restart your terminal and launch VS Code.
Windows
Use the Control Panel (System > Advanced System Settings > Environment Variables) or the command-line set command. See the Windows documentation for details.
set HTTP_PROXY=http://username:password@proxy.company.com:port
set HTTPS_PROXY=http://username:password@proxy.company.com:port
To verify that your proxy settings are working:
- Open the VS Code integrated terminal.
- Run:
echo \$HTTP_PROXY(macOS/Linux) orecho %HTTP_PROXY%(Windows). - Verify the proxy URL is displayed correctly.
- Run a Salesforce CLI command, like
sf org list, in the terminal to see if it returns correct results. Or try to retrieve source from an org using the VS Code command palette.
Some features in Salesforce Extensions for VS Code and Agentforce Vibes IDE depend upon the Java Platform, Standard Edition Development Kit (JDK). You need to have JDK version 11, 17, or 21 installed. See Java Setup for details.