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

Leave a Reply

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