# Cleanup Whitespace and duplicate classnames in Tailwind using Prettier

Tailwind has released a new version of **prettier-plugin-tailwindcss** which adds support for removing unecessary whitespaces and duplicate classnames.

### Cleaningup unecessary whitespace

When you are copying a classname or deleting a class name from the middle of a list, it's easy to endup with some extraspace that needs to be cleanedup.

Now prettier plugin will handle it automatically.

![](https://media.licdn.com/dms/image/D5612AQGeFSuSaTjmFQ/article-inline_image-shrink_1500_2232/0/1721500406797?e=1727308800&v=beta&t=PloJVisnp42ANVGEAO6ndft2vkhjnP9GRspWJDUYuI8 align="left")

### Removing Duplicate Classes

VS Code will warn us if we use the duplicate classnames using the yellow lines, but now Prettier plugin can remove those duplicate classes automatically.

![](https://media.licdn.com/dms/image/D5612AQERdTCvhGeTQg/article-inline_image-shrink_1500_2232/0/1721500649784?e=1727308800&v=beta&t=7ftJhLT-VSMWpCbGO0WKlqnW1t9V4vDD2HHrfak22cg align="left")

To start playing with these improvements in your project using the following command

```bash
 npm i prettier-plugin-tailwindcss@latest
```
