xcodeindentationlines

Show Indent Guide Lines In Xcode


Coming from a background using Visual Studio and Notepad++ I'm used to the indent guides which help to visually enhance sections of code where the curly braces are used,

Xcode (No indent guides)

xcode

Visual Studio (Nice tidy indent guides)

vs2010

As you can see from the images above sometimes there are sections of code where multiple levels of curly braces are open and it gets messy without any indent guides. Are there any options or plugins that will allow xcode to display the indent guides in between sections of code? Like the VS2010 sample?


Solution

  • Xcode doesn't have this feature (not that I'm aware of) , but it has a (kinda) similar one. If you look closely in a method with a few loops or if structures, each structure gets a black tint on the left side of the editing area (right next to the line numbers).

    You can collapse or expand the functions as needed. enter image description here