Auto-Format Erb with Prettier on VSCode
2 min readNov 29, 2022
If you’re here, I’m assuming you’re working on a Rails project and using VSCode. So I’m going go to straight to the point, and directly list the required changes to make auto-formatting work for .html.erb files on VSCode.
Install dependencies 🧩
All you need is to run one of the following commands. You probably already have prettier, but it doesn't if you…