Question: how to create lwc in salesforce?
Answer: In Visual Studio Code, open the Command Palette by pressing Ctrl+Shift+P (Windows) or Cmd+Shift+P (macOS).
Type SFDX .
Select SFDX: Create Lightning Web Component. ... 
Enter helloWorld for the name of the new component.
Press Enter to accept the default force-app/main/default/lwc.