Code indentation

I have a store procedure.

It has many nested IF ELSE block. These are not properly indented.

How do I indent nested IF ELSE block properly and increase readability of my code ?

Its very difficult to read a unindented code.

suggest me a solution to indent store procedure code.

Thanks

do it yourself, results are much more satisfying

use tabs or spaces (but be consistent in your choice)

alternatively, use one of these – code formatter