Formatting C++ code

How can I get my C++ code formatted ? The ctrl/cmd + s doesn’t work for me. I am working on Mac OS + Chrome.

The ctrl/cmd + s works for node.js program, but not C++ :unamused:

1 Like

I can’t seem to replicate this. Formatting seems to work fine in C++. Is your project large? It could affect Replit’s ability to format.

While inconvenient, you could also use an external website like Code Beautify and paste it into your Repl every once and a while.