在Xcode中显示缩进参考线 [英] Show Indent Guide Lines In Xcode

查看:682
本文介绍了在Xcode中显示缩进参考线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从使用Visual Studio和Notepad ++的背景开始,我习惯于缩进指南,该指南有助于在视觉上增强使用花括号的代码段,

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(无缩进指南)

Xcode (No indent guides)

Visual Studio(精巧的缩进指南)

Visual Studio (Nice tidy indent guides)

从上面的图片中可以看到,有时在代码的某些部分中打开了多级花括号,并且在没有任何缩进指导的情况下它变得凌乱. 是否有任何选项或插件可以使xcode在代码部分之间显示缩进指南?像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?

推荐答案

Xcode没有此功能(不是我所知道的),但是它具有类似的功能.如果您仔细查看带有几个循环的方法或结构,则每个结构在编辑区域的左侧(行号的右侧)都会显示黑色.

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.

这篇关于在Xcode中显示缩进参考线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆