我在OS X Lion上的Xcode 4.2.1中遇到了一个非常令人沮丧的问题,那里的代码折叠看起来不起作用,或者至少几乎没有任何明显的原因。Xcode 4.2.1代码折叠
默认的键盘快捷方式应该是:
Fold Methods/Functions ⇧⌘⌥⌘← shift+option+command+left
Unfold Methods/Functions ⇧⌘⌥⌘→ shift+option+command+right
..但我只是得到了荷马(“卫生署”),错误的声音所有的时候,我试试吧。
我总是确保我选择了正确的窗格(有人问之前; O),并也曾尝试以下,没有运气:
- With & without Assistant editor enabled
- In a total separate editing window
- By selecting 'Code Folding >> Fold Methods & functions' from the Editor menu
- Changing the keyboard shortcut (Even tho no conflict was showing)
唯一的线索我有,我不知道它是否相关,是否当我在编辑视图中按'选项'键时,我的光标变为+(或十字准线) - 它只在Xcode的编辑视图中执行此操作,但是我不' t认为这是问题,因为如果我更改快捷键不使用'选项'键,它仍然不起作用。
任何人有任何想法,因为它驱使我barmy &我的搜索没有拿出任何东西?