![](https://salesforcemamba.com/wp-content/uploads/2024/03/video-thum-.png)
How to Connect Visual Studio Code with Salesforce
Visual Studio Code is recommended IDE for Salesforce development. In this post, we will learn about How to Connect Visual Studio Code with Salesforce. We’ll explore the features of VS Code, configure it, and customize it to use it as a powerful tool for Salesforce Development.
Download and Install VS Code
Download Visual Studio Code (VSCode) from this link and install it on your computer. Follow the provided setup instructions during the installation process.
![Download Visual Studio Code to connect salesforce org](https://salesforcemamba.com/wp-content/uploads/2024/03/video-blog-1024x490.png)
Install the Salesforce Extension Pack on Visual Studio Code
Open your VS Code and click on the Extensions icon located on the left-hand side or press CTRL+SHIFT+X. Then, search for “Salesforce Extension Pack” and click on the install button.
![Install Salesforce Extension pack in Visual Studio Code](https://salesforcemamba.com/wp-content/uploads/2024/03/2-1-1024x420.png)
The Salesforce Extension pack automatically installs all the extensions listed below.
- Apex
- Salesforce CLI Integration
- Apex Interactive Debugger
- Apex Replay Debugger
- Visualforce
- Aura Components
- Lightning Web Component
Create Salesforce Project
Up to this point, your software setup is complete. Now it’s time to initiate your first project in VS Code. To begin, open the Command Palette or press Ctrl + Shift + P. Then, type “SFDX: Create Project” to create the project.
![create your first salesforce project in visual studio code](https://salesforcemamba.com/wp-content/uploads/2024/03/3-1024x105.png)
Establish a connection with your Salesforce Org: Authorize your Org
Our project is prepared on our local machine; now it’s time to link our VS Code with Salesforce. Once more, open the Command Palette or press Ctrl + Shift + P. This time, we need to either type or select “SFDX: Authorize an Org
![Create connection with you salesforce org](https://salesforcemamba.com/wp-content/uploads/2024/03/4-1024x143.png)
Subsequently, it will prompt you to select the environment to which we want to establish a connection.
![Select the project environment](https://salesforcemamba.com/wp-content/uploads/2024/03/4.1-1024x165.png)
During the final step, you’ll be required to furnish the organization’s alias name. Subsequently, it will direct you to your default browser and prompt you for your organization credentials.
![Login your salesforce org](https://salesforcemamba.com/wp-content/uploads/2024/03/4.2-1024x468.png)
Create Salesforce Apex Class
![Create you first salesforce Apex Class](https://salesforcemamba.com/wp-content/uploads/2024/03/5-1024x202.png)
Utilize Visual Studio Code to deploy components.
Select the Class which you want to deploy in your org. Then Right click on Vs Code and select the “SFDC: Deploy This Source to Org” option for deployment.
![Select SFDC: Deploy source to org option](https://salesforcemamba.com/wp-content/uploads/2024/03/6-1024x871.png)
View the newly created class in your organization.
![View newly created apex class in salesforce org](https://salesforcemamba.com/wp-content/uploads/2024/03/7-1024x306.png)
How to Connect Visual Studio Code with Salesforce : Let’s do it!
Tag:Configure VS Code for Salesforce, Deploy Salesforce Components with VS Code, Salesforce Apex Class in VS Code, Salesforce Development with VS Code, Salesforce Integration with VS Code, Salesforce Org Authorization in VS Code, Visual Studio Code Salesforce Setup, VS Code for Salesforce Developers, VS Code Salesforce CLI Integration, VS Code Salesforce Extension Pack