SalesforceBlue

Feel the rhythm of Salesforce

VS Code IDE

VS Code IDE Set Up For Salesforce

Visual Studio Code is an integrated development environment made by Microsoft for Windows, Linux, and macOS.

It Features include support for debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and embedded Git.

You can configure VS Code IDE for your Salesforce project with the following steps:

1. Install Visual Studio Code:

Visit https://code.visualstudio.com and click the big Download button. After the download finishes, open the installer and follow the steps to complete the installation.

VS Code IDE Set Up For Salesforce

2. Install Salesforce Extension For Visual Studio Code:

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


3. Install Salesforce CLI:

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.

Visit
https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm#sfdx_setup_install_cli and follow the detailed steps mentioned to install Salesforce CLI.

4. Java Setup:

If you already have JDK version 8 or JDK version 11(recommended) installed on your local machine then you can skip the download and installation steps shared below.

  • Navigate to the download page
  • Click the Download button for Java SE 11.x.y (LTS)
  • Accept the license agreement
  • Click the download link that applies to your OS
  • For macOS download the dmg version.
  • For Windows Download exe version.
  • If prompted to login, you will need to login with your Oracle account.
  • Once the file is downloaded open it and complete the installation steps.

By default, the extension attempts to locate your local Java installation by looking for a JAVA_HOME or JDK_HOME environment variable on your computer.

If the extension cannot find your Java installation, or if you want it to use a different installation, change the salesforcedx-vscode-apex.java.home setting.

Below are the steps to change the salesforcedx-vscode-apex.java.home setting:

  • Select File > Preferences > Settings (Windows or Linux) or Code > Preferences > Settings (macOS).
  • Search for apex.
  • Change the salesforcedx-vscode-apex.java.home setting to the full pathname of your Java Runtime. Do not set it to the Java executable itself.

Once you are done with these step then you are all set to create your first Salesforce project using VS Code IDE ๐Ÿ™‚

You can learn more about how to use VS Code IDE for Salesforce development by visiting Using VS Code IDE For Salesforce

Thank you for visiting SalesforceBlue.com
If you have any queries feel free to write down a comment below ๐Ÿ™‚


Leave a Reply

Your email address will not be published. Required fields are marked *