My VS Code project is already authorised with Salesforce sandbox and I am able to deploy or retrieve the files successfully.
How can I launch the Salesforce org from the currently opened apex class or aura comp or any other metadata.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityMy VS Code project is already authorised with Salesforce sandbox and I am able to deploy or retrieve the files successfully.
How can I launch the Salesforce org from the currently opened apex class or aura comp or any other metadata.
There is a SFDX Command to open the current org that VS Code is working against:
> SFDX: Open Default Org
Additionally, on the bottom left of the status bar the currently connected org alias is shown and clicking the icon besides it opens the org.
Under the hood both the "Open Default Org" and status strip button do the same thing. They issue the SFDX command:
> sfdx force:org:open
If you wanted to drive that directly into a particular location you could extend that with the -p
/--path
command line option. However, that would require knowing the correct landing URL for the metadata type currently being viewed. Not many metadata types have a direct view URL format.