Recommended Extensions
In addition to the extension pack shipped by Salesforce, the following extensions are useful for Salesforce developers. We also package the Extension pack with some of the most-used community extensions in the expanded extension pack.
Apex PMD
Allows you to run Apex static analysis directly in VS Code on Apex and Visualforce files.
https://marketplace.visualstudio.com/items?itemName=chuckjonas.apex-pmd
Apex Log Analyzer
An analyzer for Salesforce debug logs aimed at making performance analysis much easier and quicker. You may also find it generally useful for quickly understanding how your code is executing.
https://marketplace.visualstudio.com/items?itemName=financialforce.lana
Prettier
Keeping your code consistent and nicely formatted is important in any programming language. Prettier supports formatting for many files used by Salesforce developers, such as JavaScript and CSS files.
https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
NOTE: Prettier also supports Apex formatting through the Prettier Apex plugin.
ESLint
Analyzes your JavaScript code to find issues and to help you fix them. As a part of the LWC extension, Salesforce provides specific ESLint rules and you can also add your own. These preconfigured rules help you to write high quality code.
https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
XML
VS Code doesn’t ship with rich XML tools by default. This extension, built by Red Hat, provides language support for XML documents such as the -meta.xml
or package.xml
files in your VS Code project.
https://marketplace.visualstudio.com/items?itemName=redhat.vscode-xml
Community Extensions
The community has developed several extensions to help make Salesforce development more productive. To find these, search the Visual Studio Code Marketplace or browse all extensions tagged Salesforce.
Debugger for Java
Java Debugger based on Java Debug Server that extends the Language Support for Java by Red Hat. It allows you to debug Java code in VSCode. Install this extension to invoke and debug Java functions.