Formatting your source code can be a daunting task even modern IDE’s cannot always auto format your code correctly. One special case here is breaking long lines in python. Python is a special case here because indention matters. Using the following macro it is quite easy to format long lines easily.