To collapse a macroexpansion in the Stepper, position the cursor at the start of the macroexpansion and choose the menu command Stepper > Undo Macroexpand or click in the Stepper toolbar.