Prettier is the Salesforce recommended Apex code formatter in VSCode, but how to do the Prettier Apex VSCode setup? After all, Prettier is only a command-line tool, can Visual Studio Code use Prettier to format Apex code, and automatically? The answer is YES. I did a bit of research, figured out the solution, and wrote down this detailed guidance. If you prefer a video medium, I also created a 7-minute YouTube video with the same content. Prerequisites Install NodeJS and NPM First, we need to...