
Visual Studio Code is recommended IDE for Salesforce development. In this visual studio code tutorial we will talk about how to setup VsCode for Salesforce development. We will guide you step by step process to setup Vscode. In this session you will learn how to connect vscode to salesforce sandbox and how to retrieve apex class in vs code.
We can significantly increase productivity by using the right tools at the right time. Visual Studio Code is a popular development tool for its incredible productivity features. In this session, we’ll explore the features of VS Code, configure, and customize to use it as a power tool for Salesforce Development.
There are different way to setup VsCode by ForceCode Extensions or SalesforceDx. Here is agenda of our session.
- How to Install VsCode
- Install Salesforce Extension Pack.
- Create project with non Scratch Org
- How to create Apex Class
- Run Test Class : To retrieve code coverage results when you run Apex tests, edit your workspace settings and set salesforcedx-vscode-core.retrieve-test-code-coverage to true.
- Execute Code
- fetch data with SOQL
- Debug log in VsCode
Vs code is very powerful tool for Salesforce Admin to take advantage of SFDX.
Recording
VsCode for Salesforce With SalesforceDX
Further Learning
If you are new in Salesforce. Please check our free Salesforce Admin and Salesforce Developer training. Subscribe to the channel if you haven’t already
Thanks,
Salesforce Apex Hours

Amit Chaudhary is Salesforce Application & System Architect and working on Salesforce Platform since 2010. He is Salesforce MVP since 2017 and have 17 Salesforce Certificates.
He is a active blogger and founder of Apex Hours.
Comments(6)
Anil says:
May 10, 2020 at 6:44 amHi,
Could you please add installation of Salesforce CLI and setting class path in environmental variables. Without this visual studio won’t work right ?
Thanks,
Anil kumar
Amit Chaudhary says:
May 11, 2020 at 1:52 pmYes you need Salesforce CLI
Vijay says:
May 18, 2020 at 7:59 amHi Amit,
When I have tried SFDX:Authorize an org I am having an issue, Can you please help me in solving it?
Please answer this uestion
Thanks
https://developer.salesforce.com/forums#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Developer_Forums&criteria=ALLQUESTIONS&id=9062I000000XyVhQAK
Anil says:
May 19, 2020 at 7:16 amHi Vijay,
Please run the below command in the cmd promt and check whether salesforce CLI is installed or not.
SFDX –version
If not please install Salesforce CLI and set the class path under the environment variables.
Thanks,
Anil Kumar
Harshad Kokate says:
January 20, 2021 at 11:45 amHi Amit,
I have installed the salesforce extension pack in my VS code but I don’t see the link in test class to run all or Run test method.
Please help