Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
5 views5 pages

Vs Code Setup

The document outlines the setup process for Visual Studio Code with Salesforce development tools, including prerequisites like Visual Studio Code, Salesforce CLI, and Java Development Kit. It details steps to configure the SFDX path in system environment variables, install necessary extensions, and authorize a Salesforce sandbox. After successful setup and authorization, users can create and deploy components to their Salesforce org or create a scratch org if needed.

Uploaded by

Rajesh Kamariya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views5 pages

Vs Code Setup

The document outlines the setup process for Visual Studio Code with Salesforce development tools, including prerequisites like Visual Studio Code, Salesforce CLI, and Java Development Kit. It details steps to configure the SFDX path in system environment variables, install necessary extensions, and authorize a Salesforce sandbox. After successful setup and authorization, users can create and deploy components to their Salesforce org or create a scratch org if needed.

Uploaded by

Rajesh Kamariya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

2.

5 Visual Studio Setup

Prerequisites
The following applications should be installed in the system,
· Visual Studio Code
· Salesforce CLI
· Java Development Kit

Setup SFDX path in System Environment Variable


1. Search for Environment Variables for your Account and select the option.

2. Navigate to SFDX folder from Program Files and copy the URL.
C: Program Files ->Sfdx-> bin.
(Both JDK & SFDX variable)
4.Paste the URL in path variable’s value and click OK.
5. Click OK in the main menu.
Open Visual Studio Code
· Install needed extensions below from extension available in the left panel.
· Install following extensions
1.Salesforce CLI Integration
2.Salesforce Extenstion Pack
3.Salesforce LWC Short keys
4.Indent Rainbow
4.Brack Pack colourizer

2
5.Auto rename Tag
6.Apex PMD

· Click terminal from the top panel and check whether the sfdx version is available, it
will provide the version of sfdx only if the path setup is done.

3
· If you get any errors like “SFDX is not recognised as internal / external command”,
Edit the variable and provide as below and click OK

Variable Name – Path


Variable Value - C: Program Files ->Sfdx-> bin.
· From the top panel, click view option -> Command Palette and search for
SFDX:Create Project with manifest and select. Then select Standard: standard Project
Template and provide a name for you project folder.

· Authorize your sandbox for connecting the sandbox with visual studio.
View -> Command Palette-> Authorize an org

· If you could not find the option do the following:


o Refresh, reopen Visual Studio and try again.
o Type sfdx update in terminal, after successful update try again.

· It will navigate the user to test.salesforce.com for credentials.

4
· You could find the sandbox details and all the components available in the metadata
and file folder.

After successful authorization, now you can create any component & deploy it
to the org created.

Note-if you don’t have org then you can create scratch org as well Dev-Hub
for develop & deploy

You might also like