VS Code Installation & Setup

How to Set Up VS Code for Salesforce Development: A Step-by-Step Guide

Welcome to your new favorite tool for Salesforce development! In this guide, we’ll walk you through setting up Visual Studio Code (VS Code) for Salesforce, including installation, setting up Salesforce CLI, and getting your project up and running. Let’s dive in!


VS Code is a versatile and powerful code editor that’s perfect for Salesforce development. To get started, download and install VS Code for your operating system from this link.

Installation Steps:

  1. Go to the VS Code download page.
  2. Choose the version suitable for your operating system.
  3. Follow the installation prompts to complete the setup.

VS Code Installation


Salesforce CLI is essential for managing your Salesforce projects directly from the command line. Install it according to your operating system:

Installation Steps:

  1. Visit the appropriate download link for your OS.
  2. Download and run the installer.
  3. Follow the installation instructions.

Salesforce CLI Installation


Once you have VS Code and Salesforce CLI installed, it’s time to add some Salesforce magic with the Salesforce Extension Pack. This extension pack will make your Salesforce development smoother and more efficient.

To Install:

  1. Open VS Code.
  2. Navigate to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or by pressing Ctrl+Shift+X (Windows/Linux) or Cmd+Shift+X (Mac).
  3. Search for “Salesforce Extension Pack” in the Extensions Marketplace.
  4. Click the “Install” button to add it to your VS Code setup.

Salesforce Extension Pack Installation


With VS Code and Salesforce CLI set up, it’s time to create your first Salesforce project.

To Create a New Project:

  1. Open VS Code.
  2. Access the Command Palette by pressing Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac).
  3. Type “SFDX: Create Project with Manifest” and select it.
  4. Enter a name for your project and choose a location to save it.
  5. VS Code will generate the project structure for you.

Create Project with Manifest
Project Template
Project Template
Project Creation


To interact with your Salesforce org, you need to authorize it with Salesforce CLI through the Command Palette.

To Authorize:

  1. Open VS Code.
  2. Access the Command Palette by pressing Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac).
  3. Type “SFDX: Authorize an Org” and select it.
  4. Choose “Login to Sandbox” or “Login to Production” based on your Salesforce environment.
  5. Give the Alias name for your Org you will use in your Project.
  6. Follow the prompts to log in to your Salesforce org via the open browser window..

Authorize an Org
Salesforce Environment


And there you have it! Your VS Code is now set up for Salesforce development, and you’re ready to start coding. With the Salesforce CLI and Extension Pack, you’ll have everything you need to manage your Salesforce projects efficiently. Happy coding!

5 Comments

  1. I have ƅeen surfing online more than 2 hours
    today, yet I never found any interesting article likе yours.
    It’s pretty worth enouɡh for me. Personally, if all site owners
    and bloggеrs made ցood content as you did, the internet will be much more useful than ever before.

    • Thank you so much for your kind words. Glad it made a huge impact. Stay tuned for more such blogs.

Leave a Reply

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