You can highlight the code and use the code format button to shift all code back. It will basically tab the code back. 

Works great most of the time, unless the tab levels are way off.