Salesforce Extensions for Visual Studio Code
Release Notes
Org Development Model
Package Development Model
Create Project
Add Project to Source Control
Remote Development (Beta)
FAQ
Troubleshooting Tips
Bugs and Feedback
Use the Package Development model to develop against orgs with source tracking, such as scratch orgs. This model tracks the changes you make on your local workstation and in your default development org.
In the Org Development model, your Salesforce org’s monolith of unpackaged metadata contains all the metadata that belongs to a custom app or extension. Because that metadata isn’t isolated or organized, it can be difficult to understand, upgrade, and maintain as the complexity of your org grows.
In the Package Development model, you can organize your unpackaged metadata in your production org into well-defined packages in a DX project by creating multiple package directories. Your end goal is to create packages using those directories that are versionable, easy to maintain, update, install, and upgrade.
For more information, see the Package Development Model Trailhead module.
To develop with this model:
sfdx-project.json file and that metadata is in source format.
When you use the package development model, it’s simple to keep your local project and default development org in sync. Because you deploy your changes to other orgs using packaged sets of metadata, there’s no need to manually track your changes. VS Code is context aware that you are working in a scratch org and provides only push and pull commands, not commands to retrieve and deploy source.
To push your source to the default scratch org, run SFDX: Push Source to Default Scratch Org.
If you want the changes in the project to overwrite changes in the scratch org, run SFDX: Push Source to Default Scratch Org and Override Conflicts.
After you make changes in your scratch org, run SFDX: Pull Source from Default Scratch Org to update your project.
If you want the changes in the scratch org to overwrite changes in the project, run SFDX: Pull Source from Default Scratch Org and Override Conflicts.
Before you push local changes to the scratch org or pull remote changes to the local project, you can see the changes in the Output panel. To do so, run SFDX: View Changes in Default Scratch Org from the Command Palette.