Salesforce Extension Pack + VS Code (Highly Recommended)
This is the current Salesforce Official IDE providing full support for both traditional Sandbox (which is what we are doing in Harmoney) and Scratch Org development.
Set Up Steps
- Install Salesforce CLI – https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm#sfdx_setup_install_cli
- Install Java Platform, Standard Edition Development Kit – Version 8 or Version 11
- Visual Studio Code v1.26 or later – https://code.visualstudio.com/download
- Install “Salesforce Extensions for Visual Studio Code” by searching extensions within VS Code – https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode
At this point, you should have the IDE setup done, following the steps to start APEX code development with sandbox
- First, open VS Code and create a project. To create a project with a manifest, open the command palette (press Ctrl+Shift+P on Windows or Linux, or Cmd+Shift+P on macOS) and run SFDX: Create Project with Manifest.
- Next, authorize the org you want to develop against. To start the login process, open the command palette and run SFDX: Authorize an Org.
- After you select a login URL and give your project a name, your browser opens and you can log in to your org. After you finish logging in, close the browser and return to VS Code.
- Retrieve metadata you want to work with from your org is by using a package.xml file in the manifest directory. (You can modify the package.xml yourself to retrieve the necessary metadata – https://developer.salesforce.com/docs/metadata-coverage)
- Save the package.xml file if you make any change, right-click a manifest, in the Visual Studio Code explorer or the editor, then select SFDX: Retrieve Source in Manifest from Org.
- After the process is done, all the metadata has been pulled into local and you can start coding.
Full reference of Org Development Model with VS Code – https://forcedotcom.github.io/salesforcedx-vscode/articles/user-guide/org-development-model