One of the hardest things for me as a programmer with terrible ADHD is making sure that my code always looks clean and consistent. I hate finishing a project and then having to go back and make all of the code look pretty, it's like torture to me. But now, I can leave all of that pain in the past. Introducing the newest extension to my VSCode roster... Prettier.
Allow me to explain what this amazing extension does. Let's say you have some code that just looks... messy. No shame in it, we all write ugly code from time to time.
See? That's pretty disgusting looking if you ask me. Now you could go back and format that all by hand, wasting precious time, or you could just relax and let Prettier do it for you. By just pulling up your command palette and looking for the "Format Document" option, you can pick Prettier as your formatter and make this document look... prettier.
Prettier is highly customizable and has add-ons out there for a multitude of programming languages, including PHP, Ruby, JavaScript, HTML, CSS, Tailwind, etc. You can also have Prettier format your code every time you save if that's something you're interested in. If you're interested in other great VSCode extensions, you should absolutely check out my other blog post that talks about some of my favorites. Hopefully this extension saves you millions of hours of frustration, as it has done for me.
Top comments (1)