omri
omri

Reputation: 305

xcode - organize the code (straighten)?

is there a way to organize the the position of the code (straighten ...) automatically?

Upvotes: 0

Views: 413

Answers (3)

Chris Long
Chris Long

Reputation: 3084

Go to Preferences (+,). Then scroll along the top to the right and click the "Indent" header. There should be an option called something like "Indent text automatically." That should do what you want. :)

Upvotes: 0

Jasarien
Jasarien

Reputation: 58478

You can select the code and then choose "Reindent selection" from the context menu.

Upvotes: 0

Dave DeLong
Dave DeLong

Reputation: 243156

Edit menu > Format > Re-indent.

Upvotes: 3

Related Questions