Skip to main content Join the Agentforce Virtual Hackathon to build innovative solutions and compete for a $50k Grand Prize. Sign up now. Terms apply.
I am VERY new to LWC development and having issue opening a previously created LWC from my Org using Visual Studio Code.   I do not have this code yet in any folder on my system just want to connect to the org and pull down the code for pre-existing LWCs.

I did install Salesforce in Visual Studio Code but not sure how to use it once it's installed

Any tips are appreciated.  

Most of my old experience was with Apex/VF and Eclipse IDE.
4 个回答
  1. 2020年1月30日 02:22
    Hi Debra, 

    Follow the below steps:

    1. "Create a Project with Manifest" in VS code (folder to store the files) 
    2. Authorise an Org (connect the org where you already have LWC components)
    3. Go to Manifest Folder --> Right click --> Refresh component from Source using Manifest

    This will refresh the VS Code and get all the existing LWC Components from the connected Org. 

    If you have components in Multiple org, "Authorise an org" multiple times and refresh it.

    At last, you can set Default org to deploy all the changes into one org instead of placing them in multiple org. 

    Hope this helps. 

    Thanks,

    Gaurav

    Skype: gaurav62990
  2. 2023年4月26日 10:29
     I didnt see exactly this "Refresh component from Source using Manifest". Instead inside manifest I opened package.xml and then right clicked and then clicked on "Retrieve Source in Manifest from Org". Ensure "LightningComponentBundle" is present in your org to retireve LWC components and "AuraDefinitionBundle" is present in package.xml to retrieve Aura components.
  3. 2021年10月1日 14:59

    Debra, Gaurav,

    This is a useful discussion! I followed the steps above and managed to retrieve data from my org but I can't figure out how to edit (and find in the first place) the Article Content component that displays Salesforce Articles (part of the Knowledge product) on Communities/Sites. I need access to the HTML and JavaScript, I think, to tweak the behaviour of images displayed as part of the 'Article Content' component. I am not finding the component in question under the LWC folder, nor anywhere else (components, pages folders etc). Is this possible at all?

    Debra, Gaurav,This is a useful discussion! I followed the steps above and managed to retrieve data from my org but I can't figure out how to edit (and find in the first place) the Article Content comp

0/9000