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
Vishnu SanthoshVishnu Santhosh 

How to Auto-Retrieve class from org when I open the same in Visual Studio Code ?

Hi,

Consider this case where I made changes in a class of an org from the browser. So, to see the changes made in the org to be seen in the VSCode, I need to open the same class and right click > SFDX : Retrieve This Source From Org. I need to do this each time or else, the changes made in the org will be overwritten if i push the class to the org.

How can i auto retrieve the same class once I open in the VSCode without each time right clicking and selecting the Retrieve this source from Org option ? 

If this issue can be solved/approached in another way, kindly suggest me that too.

Thank you :)

Best Answer chosen by Vishnu Santhosh
Suraj Tripathi 47Suraj Tripathi 47
Hi Vishnu,

I don't think that is possible you always have called the SFDX command for getting resource changes made by you in your org.
I know that is not very good but this is the only way to retrieve the source from org.


Thanks And Regards,
Suraj Tripathi.