Skip to content
No results
Menu
No results
  • Home
  • All Blogs
    • Career
    • Admin
    • Developer
    • DevOps
    • CTA
  • Interview
  • Certifications
  • Free Training
  • About Us
Events
Apex Hours
  • Home
  • All Blogs
    • Career
    • Admin
    • Developer
    • DevOps
    • CTA
  • Interview
  • Certifications
  • Free Training
  • About Us
Courses
Events
Apex Hours
Courses
Visual Studio Code For Salesforce
Visual Studio Code For Salesforce

Visual Studio Code for Salesforce

  • Amit ChaudharyWritten ByAmit Chaudhary
  • December 30, 2025
  • DevOps CI/CD / Salesforce Developer
  • 5

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.

  1. How to Install VsCode
  2. Install Salesforce Extension Pack.
  3. Create project with non Scratch Org
  4. How to create Apex Class
  5. 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.
  6. Execute Code
  7. fetch data with SOQL
  8. Debug log in VsCode

Vs code is very powerful tool for Salesforce Admin to take advantage of SFDX.

VS Code for Salesforce Demo

VsCode for Salesforce With SalesforceDX

How to Setup Visual Studio Code for Salesforce| VsCode for Salesforce With SalesforceDX

Further Learning

  • Salesforce DX for Non-Scratch Org
  • Mastering Salesforce DX and Visual Studio Code

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

Learn how to setup Vs code for Salesforce step by step process.

Tags
# Debug log in VsCode# non scratch org# Salesforce DevOps# Salesforce Extension Pack# Visual Studio Code# VsCode
Share your love
Share on Facebook Share on X (Twitter) Share on Pinterest Share on LinkedIn
Amit Chaudhary
Amit Chaudhary

Amit Chaudhary is a Salesforce Application & System Architect who has been working on the Salesforce Platform since 2010. He has been Salesforce MVP since 2017 and has 23 Salesforce Certificates.

Articles: 153

Related Posts

LWC + Apex Best Practices for Large Data Operations

LWC + Apex Best Practices for Large Data Operations

getQueryLocator vs. Iterator in Apex

getQueryLocator vs. Iterator in Apex

Monitor Your Salesforce API Usage Like a Pro

Monitor Your Salesforce API Usage Like a Pro

How Revenue Cloud Helps Subscription

How Revenue Cloud Helps Subscription-Based Businesses

Salesforce Live Chat Migration Guide to Enhanced Chat

Salesforce Live Chat Migration Guide to Enhanced Chat

Apex Trigger Best Practices in Salesforce

Apex Trigger Best Practices in Salesforce

5 Comments

  1. Anil

    Anil

    May 10, 2020 / 6:44 am Reply

    Hi,

    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

    • Apex Hours

      Amit Chaudhary

      May 11, 2020 / 1:52 pm Reply

      Yes you need Salesforce CLI

  2. Vijay

    Vijay

    May 18, 2020 / 7:59 am Reply

    Hi 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

  3. Anil

    Anil

    May 19, 2020 / 7:16 am Reply

    Hi 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

  4. Harshad Kokate

    Harshad Kokate

    January 20, 2021 / 11:45 am Reply

    Hi 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

Leave a ReplyCancel Reply

Your email address will not be published. Required fields are marked *

Accelq

Important Links

Home
About us
Contact us
Privacy Policy

Recent Posts

  • Salesforce Data Breaches- What Really Went Wrong (And How to Protect Your Org)

  • From Admin to Architect —A Realistic Career Roadmap

  • LWC + Apex Best Practices for Large Data Operations

  • getQueryLocator vs. Iterator in Apex

  • Salesforce Revenue Cloud Key Objects We Should Know

Subscribe to the blog via email

Enter your email address to subscribe to this blog and receive notifications of new post by email.

Join 4,531 other subscribers

Copyright 2018-2026. All Rights Reserved By Apex Hours.