【发布时间】:2023-03-22 00:08:01
【问题描述】:
我在 OS X Lion 上的 Xcode 4.2.1 中遇到了一个非常令人沮丧的问题,代码折叠似乎不起作用,或者至少几乎没有任何明显的原因。
默认的键盘快捷键应该是:
Fold Methods/Functions ⇧⌘⌥⌘← shift+option+command+left
Unfold Methods/Functions ⇧⌘⌥⌘→ shift+option+command+right
.. 但我只是得到荷马('Doh'),我每次尝试时都会发出错误声音。
我始终确保选择了正确的窗格(在任何人询问之前;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)
我拥有的唯一线索,我不确定它是否相关,就是每当我在编辑视图中按下“option”键时,我的光标都会变为 +(或十字准线) - 它只在 Xcode 的编辑视图中执行此操作,但我认为这不是问题,就像我将快捷方式更改为不使用“option”键一样,还是不行。
任何人有任何想法,因为它让我很生气并且我的搜索没有提出任何想法??
【问题讨论】: