默认启用代码折叠 [英] Enable code-folding by default

查看:29
本文介绍了默认启用代码折叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在打开文件时默认告诉 XCode 折叠方法/函数?

Is there a way to tell XCode fold methods/functions by default when opening a file?

推荐答案

不确定这是操作系统更改还是 Xcode 更改,但在 Lion with Xcode 4 上,引用了其中一些命令由 Griffo 使用 Option 修饰符(⌥ 键)执行,而不是控制.我进行了一些更改以反映这一点:

Not sure if this is an OS change, or an Xcode change, but on Lion with Xcode 4, some of these commands cited by Griffo are performed with the Option modifier (the ⌥ key), not control. I've made some changes to reflect this:

Fold                       ⌥⌘←      option+command+left
Unfold                      ⌥⌘→      option+command+right
Unfold All                  ⌥U        option+U
Fold Methods/Functions      ⌥⌘↑      option+command+up
Unfold Methods/Functions    ⌥⌘↓      option+command+down

对不起,我删除了一个线程,但我认为这是值得修改的.

Sorry to necro a thread, but I thought this was worthwhile to revise.

这篇关于默认启用代码折叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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