I am new to VSCode.
I have set up VSCode and connected it an Org.
But not able to see the classes from the Org in the VSCode.
I need to use classes
, triggers
and VF pages
from the Org, in VSCode?
I right clicked on force-app folder and then clicked on SFDX: Retrieve Source from Org
:
Got message like this in output:
sfdx force:source:retrieve --sourcepath c:\Users\MyUser\Documents\Projects\MyProject\MyProject\force-app ended with exit code 0
=== Retrieved Source
No results found
I tried retrieving files from Org in the MyProject->.sfdx->org->[email protected]
like this:
Getting the following error in output:
Error deploying or retrieving source: The file or directory that you tried to deploy or retrieve isn't in a package directory that's specified in your sfdx-project.json file. Add this location to your "packageDirectories" value, or deploy or retrieve a different file or directory. For details about sfdx-project.json, see: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_config.htm
What I am missing here?