Can´t autoformat

When I try to autoformat (shift+alt+f) I get a “write EPIPE” message.

How do I fix it?

Thanks!

Autoformatter is part of the C/C++ VSCode extension from Microsoft, not PlatformIO’s part. I suggest you create a new issue at Issues · microsoft/vscode · GitHub in which you declare your used VSCode version, all installed extensions and their versions and the procedure / setup to trigger the error.

1 Like

Are you using the C/++ extensions built-in formatter, or have you added the clang-format extension? If it’s the latter, this issue may help

1 Like

It solved it for me. In my case, installing Clang and rebooting the IDE.

Thank you!!

:smiley:

1 Like