The current source code selection will be re-indented by pressing Control+I, or by the contextual menu invoked by right-clicking in the source file and selecting Correct Indentation.
In this initial figure, the lines for the task body are incorrectly indented (in an admittedly unlikely extreme).
We select those lines that require reformatting in the next figure. In this case all of the task body is selected, but the user controls the selection and only the selected lines are reformatted. Once selected, we invoke the reformatting command.
The following figure shows the result.