Recommended Extensions

Recommended Extensions

In addition to the extension pack shipped by Salesforce, the following extensions are useful for Salesforce developers.

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

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: Unfortunately, Prettier doesn’t support Apex (a member of the community is working on it though).

XML

VS Code doesn’t ship with rich XML tools by default. This extension, built by Red Hat, provides language support for 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

GitHub Pull Requests

This extension makes working with GitHub even easier.

https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github

GitLens

Supercharge the Git capabilities built into VS Code: Visualize code authorship at a glance via Git blame annotations and code lenses, navigate and explore Git repositories, gain valuable insights via powerful comparison commands, and more.

https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens