The Salesforce Extension Pack for Visual Studio Code (VS Code) is the recommended integrated development environment (IDE) for developing on the Salesforce platform. It replaces the deprecated Force.com Plugin for Eclipse. VS Code with the Salesforce Extension Pack (SFDX) includes tools for code editing, build automation, debugging, and intelligent code completion.
This article explains how to create a new Salesforce DX project in VS Code, authorize an org, retrieve metadata using a package.xml manifest, and then search the retrieved codebase for hard-coded references — such as org-specific IDs, hardcoded URLs, or object names that should be dynamically resolved.
Before following these steps, ensure you have installed Visual Studio Code and the Salesforce Extension Pack. See the Trailhead Quickstart guide linked in Additional Resources.
Follow these steps to create a Salesforce DX project and retrieve metadata from your org:
package.xml file is created. Add the metadata types you want to retrieve to this file. See Sample package.xml Manifest Files in the Metadata API Developer Guide (linked in Additional Resources).package.xml.Once metadata is retrieved, search for hard-coded references (such as org IDs, hardcoded URLs, or object names) using the built-in VS Code search:
force:source:pull instead of the manifest-based retrieve approach described above.000381316

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.