Guidefor setting up Visual Studio Code and Salesforce DX.
· Java Platform, Standard Edition Development Kit
You needto have either version 8 or version 11 of the JDK installed. If you don’talready have version 8 or 11 of the JDK installed, you can install the latestversion of the Java 8 JDK from Java SE Development Kit 8 Downloads
3. Downloadand Install Salesforce CLI using given link: https://developer.salesforce.com/tools/sfdxcli
4. Validate CLI installation – type sfdxcommand in command prompt or terminal. You should be output as below.
· Downloadvisual studio code from : https://code.visualstudio.com/download
· Followon screen instructions to install visual studio code
· Open VisualStudio Code and navigate to Extensions tab.
· Searchfor ”Salesforce Extension Pack” in search box. You shoud see first option asSalesforce extension listed.
· SelectSalesforce Extension Pack and Install as VS Code extension
Install Git : https://git-scm.com/download/win
· Open new window and select “command palette…”.
· Select “SFDX: Create Project with Manifest…”.You can type “sfdx:” to get the list of all sfdx related commands
· Select “Standard Project Template”
· Provide name of your project
· Save to the specific location and you will havebasic project folder structure created as shown below
· Authorize your Org with project. Open commandpalette and choose “SFDX: Authorize an Org”. Then selecttest.salesforce.com with your username to authenticate. Then it will navigateto webpage to authorise.
You shouldsee successfully authorised message into Visual studio output.
· Replace your “package.xml with default createdmanifest file located at ./manifest/package.xml
· Right click package.xml and select “SFDX:Retrieve Source in Manifest from Org”.
· This may take quite a time based on components configuredin manifest file. Once all components retrieved you will have your projectconfigured will all components.
· Retrieve only specific components from org usingdx. Retrieve only “classes” components from Org.
· Deploy specific components to Org.
· This plugin would be required to check thedifference between the Org and the local. This comes in handy for defectresolution.
· Open terminal and run the below command:
· sfdx plugins:install @salesforce/sfdx-diff
· VS Code ESLint extension
· Prettier - Code formatter extension