Salesforce Extensions for Visual Studio Code
Release Notes
Create Project
Add Project to Source Control
Remote Development (Beta)
FAQ
Troubleshooting Tips
Bugs and Feedback
Launch your VS Code desktop application and follow the given steps to create a Salesforce DX project:
The new project is now available in the Project Explorer.
We don’t support mutiple projects in the same VS Code workspace.
Note
If you already have a DX project in a GitHub repo, you can clone the repo into your VS Code desktop environment.
To clone a repo using SSH, use a SSH key that is recognized by GitHub. To configure the SSH key, follow the Connecting to GitHub with SSH instructions on the GitHub website. You must complete these steps before you can clone a repo.
Note
To create a project from a GitHub repo, let’s use the dreamhouse-lwc sample app.
dreamhouse-lwc sample app repo into a directory on your desktop by running:1git clone git@github.com:trailheadapps/dreamhouse-lwc.gitdreamhouse-lwc folder that was generated by the clone command.The dreamhouse-lwc project is now open and ready to use!

If it’s the first time you’re creating a project in VS Code and you haven’t authorized an org yet, the display text for the Org Picker shows No Default Org Set.

After you provide an org alias, a browser window opens. Allow access, log in to your org, and then return to the VS Code window. The Org Picker now shows the alias provided while authorizing the org.

After connecting to a sandbox, DE org, or Trailhead Playground, use the package.xml file to retrieve the metadata from your org. When you run the SFDX: Create Project with Manifest command, a package.xml file is created. Add the various metadata types you want to retrieve to this file. To understand how to work with different subsets of metadata in package.xml file, see Sample package.xml Manifest Files in the Metadata API Developer Guide.
For more information about DX projects, see Salesforce DX Project Structure and Source Format in the Salesforce DX Developer Guide.
See Also Create a Salesforce DX Project