In VS Code preference, I set the Tab Width = 4 and Print Width = 120, but when I format, I can still see the tabSize being 2. Is there any other configuration that I need to do? Thanks.
After running the install command:
npm install --save-dev --save-exact prettier prettier-plugin-apex
Restart VS Code.
Then, go to View > Command Palette... and find the command "Prettier: Create Configuration File", and run it.
Finally, you can go to the
.prettierrc file in your project's root folder, open it up, and set either the number of spaces to use or to use tabs.
I did not find a UI for editing this file, so I'm not entirely sure what configuration you may have been playing with.