VS CODE – Enable Push-Or-Deploy Code on Save

Arun explains how to enable 'deploy on save' in Visual Studio Code for Salesforce orgs. In preferences, open user settings, then expand extensions and click on "Salesforce Feature" to edit settings.json. Add "salesforcedx-vscode-core.push-or-deploy-on-save.enabled": true, save it and restart VS Code for automatic deployment on saving code.

Visual Studio Code:  ‘deploy on save’ into source org.

Setup:

Ctrl + Shift + P | enter “Setting” in box and select -> Preferences:Open User Settings

1

Expand Extensions. | Click on “Salesforce Feature…” | Click on “Edit in settings.json”

2

Add 👉 “salesforcedx-vscode-core.push-or-deploy-on-save.enabled”: true in the settings.json

3

Save.

Restart the VS CODE.

Now if you save the code it will automatically deploy code to your source org (authorized org).

 

Thanks

Arun

 

Arun Kumar
Arun Kumar

Arun Kumar is a Salesforce Certified Platform Developer I with over 7+ years of experience working on the Salesforce platform. He specializes in developing custom applications, integrations, and reports to help customers streamline their business processes. Arun is passionate about helping businesses leverage the power of Salesforce to achieve their goals.

Articles: 162

Leave a Reply

Discover more from SFDC Lessons

Subscribe now to keep reading and get access to the full archive.

Continue reading

Discover more from SFDC Lessons

Subscribe now to keep reading and get access to the full archive.

Continue reading