How to Indent Multiple Line of Code on Mac using XCode with White Spaces, Lines & Tabs or How to Fix Code Tab Indention on Mac using XCode?

Problem is when you have flat multiple line of code & you want all of the code indent in one click of button without going through every word, line pressing the button β€˜Tab’.

So I put down few notes containing tutorial to how to indent multiple line of code within one click or one second, Here is how.


Method 01:

Select code you want to Indent

Navigate to ‘Editor’ Menu > Structure > Re-Indent


Right Click on Selection > Structure > Re-Indent


Method 02:

Select code you want to Indent


⌘ + [

to Indent Line of Code


⌘ + ]

to Un-Indent or to Remove Indention from Line of Code

Hope it helps,

Thanks & Regards
Mandar Apte

Mandar Apte

This website contains a design articles blog by Mandar Apte. He writes and shares his iOS development, graphic, web, & animation film design experience through articles. Mandar is Mumbai based multi-disciplinary designer with expertise in UI, UX, Logo, Symbol, and Brand Identity design. He is an alumnus of Sir J. J. Institute of Applied Art, Mumbai. He currently runs his studio in the heart of the city of Mumbai.

Leave a Reply

Your email address will not be published. Required fields are marked *