salesforcedx-vscode – forcedotcom
适用于 VS Code 的 Salesforce 扩展
关键指标一览
主题标签
README 详细介绍
Salesforce Extensions for VS Code


Introduction
This repository contains the source code for Salesforce Extensions for VS Code: the Visual Studio Code (VS Code) extensions for Salesforce DX.
Currently, we have the following extensions:
A top-level extension pack that automatically installs the following extensions for you.
This extension interacts with the Salesforce CLI to provide basic Salesforce DX functionality.
This extension uses the Apex Language Server to provide features such as syntax highlighting and code completion.
This extension enables VS Code to replay Apex execution from Apex debug logs.
This extension supports Aura component bundles. It uses the HTML language server from VS Code.
This extension supports Visualforce pages and components. It uses the HTML language server from VS Code.
This extension enables you to interactively build a SOQL query via a form-based visual editor, view the query as you build, and save query results to a .csv or .json file. If the query is not a file on disk, export prompts for a name and folder like SFDX: Create Query in SOQL Builder.
- salesforcedx-vscode-slds This extension simplifies working with the Salesforce Lightning Design System (SLDS). It provides code completion, syntax highlighting, and validation with recommended tokens and utility classes.
- salesforcedx-einstein-gpt This extension uses generative AI to make Salesforce development in Visual Studio Code richer with features such as a Dev Assistant that helps with writing, documenting, and understanding code. It also provides inline autocompletion, and test case generation for Apex and LWC code.
- sfdx-code-analyzer-vscode This extension scans your code using multiple rule engines to produce lists of violations that you can use to improve your code. v5 also includes all the functionality of the ESLint and Apex PMD extensions. Now, the Salesforce Code Analyzer extension statically analyzes both your Apex and JavaScript code to quickly find problems.
- salesforcedx-vscode-ui-preview This extension enables you to preview Lightning Web Components directly within VS Code with automatic updates on save, allowing you to iterate quickly without deploying code.
- salesforcedx-metadata-visualizer-vscode This extension creates visual diagrams of Salesforce metadata in real-time, making it easier to understand its structure and relationships compared to reviewing raw metadata files. You can visualize metadata generated by AI using Agentforce Vibes or from your SFDX project enabling you to easily understand and analyze code.
Be an Efficient Salesforce Developer with VS Code
Dreamforce 2018 session on how to use Visual Studio Code and Salesforce Extensions for VS Code:

Getting Started
If you are interested in contributing, please take a look at the CONTRIBUTING guide.
If you are interested in building the extensions locally, please take a look at the developing doc.
You can find more information about using the Salesforce Extensions for VS Code in the public documentation. If the docs don't cover what you are looking for, please feel free to open an issue.
For information about using the extensions, consult the README.md file for each package.
TypeScript Support for Lightning Web Components
Salesforce Extensions now fully support creating and developing Lightning Web Components using TypeScript. For details, see the TypeScript LWC Support Guide.
Project Governance & Support
For questions, issues, or support, please open an issue in this repository or refer to the documentation above.