function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Roman RegmiRoman Regmi 

How do I reinitialize my VS code for salesforce development?

User-added image

I was able to create new LWC component, deploy source to org before. But after I closed the project and reopend it, I can no longer do any of those. How do I resolve this?
Best Answer chosen by Roman Regmi
Roman RegmiRoman Regmi
1. Double Click your Visual Studio Code Icon. 
2. Click on File -> Open Folder
3. Open your folder

User-added image


After 30 seconds, your project will have been initialized to the org.

Opening the folder in VS Code from the terminal did not work for me. 
 

All Answers

Sai PraveenSai Praveen (Salesforce Developers) 
Hi Roman,

In the visual studio code go to View->command Pallate and type create Lightning web component and from where we can create the LWC as shown below.

User-added image
If this solution helps, please mark it as best answer.

Thanks,
 
Roman RegmiRoman Regmi
User-added image

I already tried that. The only SDFX command availabe is Create Project. I do not want to create a project. I want to reinitialize this project. 
Roman RegmiRoman Regmi
1. Double Click your Visual Studio Code Icon. 
2. Click on File -> Open Folder
3. Open your folder

User-added image


After 30 seconds, your project will have been initialized to the org.

Opening the folder in VS Code from the terminal did not work for me. 
 
This was selected as the best answer