Create an SFDX Project for the Custom Component

Create a Salesforce Developer Experience (SFDX) project to store your custom component files.

  1. In the Visual Studio Code editor, open the Command Palette by pressing Ctrl+Shift+P (Windows) or Cmd+Shift+P (macOS).

  2. Enter SFDX.

  3. Select SFDX: Create Project.

  4. Click Enter.

  5. Name the project, for example, HelloWorldLightningWebComponent, and click Enter.

  6. Select a folder to store the project.

  7. Click Create Project.

Screenshot of LWC project files.