Код отсюда Python

#1) Select the code you want to indent
#2) On the menu on top click on "Format" and then click on "Indent region"
#On Mac you may also just click cmd + ]
MitchAloha