

Once VS Code is restarted, let’s install Prettier. Now, add the Node.JS Extension Pack extension to VS Code: Make sure that “Add to PATH” installation option is checked.In my ase, I got the Windows 64-bit MSI file. Depending on your OS, download the right package.If it is not installed yet, follow these steps: To begin, Node.JS should be installed on your computer.

In this post, I will explain how I installed Prettier, and in the next post I will explain about Uncrustify. VS Code is becoming the most popular Salesforce IDE, but unfortunately, VS Code does not have a default code formatter for Apex! For that, we can use some extensins like Prettierand/or Uncrustify.
