Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 641
HGomez Avatar asked Feb 06 '12 21:02

HGomez


2 Answers

In Xcode 10, if you press Command and hover over the structure it will show what is desired. It is not permanent but it helps.

Vertical line to show structure star end

like image 68
Juan Mireles II Avatar answered Oct 11 '22 22:10

Juan Mireles II


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

like image 5
Danut Pralea Avatar answered Oct 11 '22 22:10

Danut Pralea