Mandar Apte

UI/UX Designer from Mumbai, Maharashtra, India.

Indent Multiple Lines of Code on Mac using Xcode. Fix Code Tab Indention on Mac using XCode?

The problem is when you have flat multiple lines of code & you want all of the code indent in one click of a button without going through every word or line by 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 the code you want to Indent

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

OR

Right Click on Selection > Structure > Re-Indent

Method 02:
Select the code you want to Indent

Press

⌘ + [

to Indent Line of Code

Press

⌘ + ]

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

Hope it helps,

Thanks & Regards
Mandar Apte