2

I am using XCode 4.5 and I need to indent about 50 lines of code to the left by 1-tab. How can I do this (without doing it line by line) ?

Ashish Agarwal
  • 14,555
  • 31
  • 86
  • 125

2 Answers2

4

Use Cmd-[. That will indent the selected lines by one tab to the left. You can find the menu commend in Editor->Structure->Shift Left

ericg
  • 8,413
  • 9
  • 43
  • 77
2

Select all of the text and press Option + ] to shift right or Option + [ to shift left.

Rowan Freeman
  • 15,724
  • 11
  • 69
  • 100