Prerequisites
Field Service Org Setup
iOS Simulator Setup
Android Emulator Setup
Workspace Setup
Create and Configure a Lightning Web Component
Previous Versions
Set up your development environment, create a project to develop your LWC in, and connect your project to Salesforce.
Launch VS Code.
Select File | Open and open a project to use with your org.
If you don’t have a project created, you can open the VS Code Command Palette by clicking View | Command Palette, enter SFDX, and select SFDX: Create a Project. Then follow the prompts.
Note
In the menu bar, select View | Terminal 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.
1sf plugins install @salesforce/lwc-dev-mobileIn the menu bar, select View | Command Palette 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.