1

Is it possible to change code (html, js, css) in Lightning Web Components online in Salesforce? Something like this I don't know to run it according this manual.

Because I would like to check code imported from VSCode. It seems to me that the code/component is not updated.

2 Answers 2

1

there is a variety of chrome extensions available to view and edit the LWC code within the salesforce. I am using the following:

To view the code only you can make use of the Salesforce Assitant extension: https://chrome.google.com/webstore/detail/salesforce-assistant/acpngnlieelljdlljmenkagbonaicccj

enter image description here

.

.

If you want to edit the code as well, then you can consider salesforce advance code searcher: https://chrome.google.com/webstore/detail/salesforce-advanced-code/lnkgcmpjkkkeffambkllliefdpjdklmi enter image description here

Sign up to request clarification or add additional context in comments.

8 Comments

Thank you, I installed Salesforce Assistant into Chrome 89, but it writes "Please wait while loading data". 10 minutes passed and nothing read. image And Salesforce advanced Code searcher does not work.
Hey @Elo, wait for some time or try switching between classic and lightning mode once. if it does not work then try logging into your org again. I'm using this extension since it was launched and got a similar message when used for the first time on org and after a while, it works fine.... And For Salesforce advanced Code searcher you have to authorize your logged-in org.
Sorry man, I tried your advices, but Salesforce Assistant does not work. I logged in to Salesforce Lightning Experience and I clicked to Chrome extension the Salesforce Assistant. I waited 1 hour and it wrote "Please wait while loading data". Then I logged out. I logged in. Again clicked to the Salesforce Assistant. And I waited 1 hour and nothing to load.
Therefore switched to Salesforce Classic and I repeated the procedure. I clicked to Chrome extension the Salesforce Assistant. I waited 1 hour and it writed "Please wait while loading data". Then I logged out. I logged in to Salesforce Classic. Again clicked to the Salesforce Assistant. And I waited 1 hour and nothing to load. Sorry, I don't know how to run the Salesforce Assistant.
Salesforce Assistant and also Salesforce Advanced Code Searcher is working now. Just turn off Incognito mode in Chrome :) It works, thank you.
|
0

Currently, you can't "import code online".

To check if your code been deployed correctly you can use chrome devtools and see if your files been deployed and used. There is a cache machanizam also which you can disable -will reduce performance https://www.salesforcecodecrack.com/2019/09/disable-browser-cache-during-lightning.html

For more info regarding debugging LWC check out this article: https://developer.salesforce.com/blogs/2019/02/debug-your-lightning-web-components.html

2 Comments

Ok, code cannot be modified online. And is it possible view structure of files html, js, css? Because I see only components.
Same... You can use this Chrome extension in case you "have it" chrome.google.com/webstore/detail/salesforce-advanced-code/… ofcourse you should check your org policy for those kinds of extensions since it requests an access

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.