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
hruthik sandhugari 1hruthik sandhugari 1 

I have connected salesforce with Vs code the classes and triggers that are there in salesforce are unable to fetch into the vs code

User-added imageUser-added imageUser-added image
SwethaSwetha (Salesforce Developers) 
HI Hruthik,
Once you created a new project in VSCode, you need to generate manifest file as shown in image
User-added image

It will have a package.xml file .Include below snippet in the package.xml and then rightclick> SFDX: Retrieve Source from Org
 
<?xml version=“1.0” encoding=“UTF-8" standalone=“yes”?>
<Package xmlns=“http://soap.sforce.com/2006/04/metadata”>
    <types>
        <members>*</members>
        <name>ApexClass</name>
    </types>
    <types>
        <members>*</members>
        <name>ApexTrigger</name>
    </types>
    <version>55.0</version>
</Package>

If this information helps, please mark the answer as best. Thank you
Bryan Leaman 6Bryan Leaman 6
Alternatively, depending on your situation, you could simply retrieve the source from the VS Code terminal prompt:
sfdx force:source:retrieve -m "ApexClass"
sfdx force:source:retrieve -m "ApexTrigger"
etc.