This extension pack includes tools for developing on the Salesforce platform in the light weight, extensible VS Code editor. These tools provide features for working with development orgs (scratch orgs, sandboxes and DE orgs), Apex, Aura components, Visualforce and Lightning Web Components.
VS Code is a Product of Microsoft. It is a light weight, modern and free IDE.
Supporting Platforms: Linux, Windows and Mac
Debug with logs
Running VS Code on Windows
Note: If you are getting error related to Java, make sure to explicitly set Java variable in VS code setting or add JAVA_HOME variable to your "Environment Variables" pointing to the jdk folder.
Before you set up Salesforce Extensions for VS Code, make sure that you have these essentials.
Before you use Salesforce Extensions for VS Code 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.
After you've installed Salesforce Extensions for VS Code's dependencies, install the Salesforce Extension Pack extension from the Visual Studio Marketplace. The extension pack contains everything you need to develop Salesforce apps using Visual Studio Code.
This extension pack includes tools for developing on the Salesforce platform in the lightweight, extensible VS Code editor. These tools provide features for working with development orgs (scratch orgs, sandboxes and DE orgs), Apex, Aura components and Visualforce.
After Installation of Salesforce Extension Pack
Creating a Project
There are two types of developer processes or models supported in Salesforce Extensions for VS Code.
Org Development Model:
The org development model allows you to connect directly to your sandbox, Developer Edition (DE) org, Trailhead Playground, or even a production org to retrieve and deploy code directly. This model is similar to the type of development you have done in the past using tools such as Force.com IDE or MavensMate.
When you employ the org development model, you track your changes manually and deploy sets of changes to sandboxes and then to your production org.
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.
After you make code changes, deploy these changes to your org.
To deploy source to an org without source tracking (to an org that's not a scratch org), you can: