Monday, May 18, 2020

format your code better? In a way that's more readable? the way it looks in an IDE ( copied code form web )


There are multiple solutions

  1. 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 )
  2. Other way is to use something called codebutifier.
    1. ex. https://codebeautify.org/cpp-formatter-beautifier
    2. copy your code and Click Format






No comments: