Develop Against Any Org in Visual Studio Code (Beta)

Connect to any org to retrieve and deploy source from Visual Studio Code. Previously, you could use Salesforce Extensions for VS Code only with scratch orgs. Salesforce Extensions for VS Code is the flagship development environment for customizing Salesforce with code. The ability to connect to and develop against any org enables you to start using Visual Studio Code, even if you don’t work exclusively with scratch orgs.
Where: This feature applies to Lightning Experience, Salesforce Classic, and all versions of the Salesforce app in Enterprise, Performance, Unlimited, Developer, and Database.com editions.
Note

Note

As a beta feature, the ability to use VS Code with non-source-tracked orgs is a preview and isn’t part of the “Services” under your master subscription agreement with Salesforce. Use this feature at your sole discretion, and make your purchase decisions only on the basis of generally available products and features. Salesforce doesn’t guarantee general availability of this feature within any particular time frame or at all, and we can discontinue it at any time. This feature is for evaluation purposes only, not for production use. It’s offered as is and isn’t supported, and Salesforce has no liability for any harm or damage arising out of or in connection with it. All restrictions, Salesforce reservation of rights, obligations concerning the Services, and terms for related Non-Salesforce Applications and Content apply equally to your use of this feature. You can provide feedback and suggestions for this functionality in the Issues section of the salesforcedx-vscode repository on GitHub.

When: We expect to make this functionality available and to provide documentation when Salesforce Extensions for VS Code v44 is released on October 13, 2018. For updates, keep an eye on the Salesforce Extensions for VS Code change log.

How: To access the Visual Studio Code command palette, press Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows or Linux). Then run these commands as needed.
  • To log in to an org and set that org as the default org for your project, run SFDX: Authorize an Org.
  • To generate a project with a manifest (with a package.xml file) to develop against orgs without source tracking (orgs that aren’t scratch orgs), run SFDX: Create Project with Manifest.
To retrieve source from an org without source tracking (from an org that’s not a scratch org), right-click a manifest, a source file, or a directory in the Visual Studio Code explorer. Select SFDX: Retrieve Source from Org. Or, right-click a file that’s open in the editor, and select SFDX: Retrieve This Source from Org.
Important

Important

Retrieving source from an org overwrites your local versions of the source files.

To deploy source to an org without source tracking (to an org that’s not a scratch org), right-click a manifest, a source file, or a directory in the Visual Studio Code explorer. Select SFDX: Deploy Source to Org. Or, right-click a file that’s open in the editor, and select SFDX: Deploy This Source to Org.
Important

Important

Deploying source to an org overwrites the metadata in your org with your local versions of the source files.

To delete source from your project and from your non-source-tracked org, right-click a manifest, a source file, or a directory in the Visual Studio Code explorer. Select SFDX: Delete from Project and Org. Or, right-click a file that’s open in the editor, and select SFDX: Delete This from Project and Org.