Workspace Setup
Set up your development environment, create a project to develop your LWC in, and
connect your project to Salesforce.
- Launch VS Code.
-
Select
and open a project to use with your org.
- In the menu bar, select to open VS Code’s integrated terminal if it’s not already visible.
-
Run the following command to install the Salesforce Extension Plugins for
mobile.
sf plugins install @salesforce/lwc-dev-mobile
- In the menu bar, select to open the VS Code Command Palette.
- Enter SFDX and select SFDX: Authorize an Org.
-
Select the org you want to use and press Enter.
A web page opens for the org login.
-
Verify your org authorization by checking the bottom left in VS Code.
You should see your username in the VS Code status bar.
If you have difficulty authorizing SFDX for access to your org, see SFDX Authorization.