Query Records
The Salesforce Extension Pack includes tools to help you write, build, and execute Salesforce Object Query Language (SOQL) queries directly from VS Code. Use the SOQL Builder for a visual, form-based query experience, write SOQL in Apex or standalone .soql files with code completion, and run queries against the REST or Tooling APIs to inspect results inline. To query records:
Guides:
Trailhead: