There are multiple solutions
- If you have IDE you can copy paste code and can just call format code ( in eclipse short cut is CTRL + SHIFT + F , In Clion or similar ide CTRL + ALT + L, you get the idea )
- Other way is to use something called codebutifier.
- ex. https://codebeautify.org/cpp-formatter-beautifier
- copy your code and Click Format
No comments:
Post a Comment