1
votes

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

2 Answers

1
votes

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

0
votes

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