Prettier formatter not working for .sol files, but works with .js, .css, etc

41 Views Asked by At

At the bottom of VS Code the prettier icon is a cross out icon when in a .sol file, but when I'm in other file types it's a checkmark.

Here's the error message I receive when I try to format the solidity file

The icon I'm referring to.

I've read through some of the other post on similar problems and can't seem to get it to work by following those suggestions. I also got a message when trying to format saying prettier doesn't work with solidity, but I've used it for .sol files before.

0

There are 0 best solutions below