随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。
你的呢?
随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。
你的呢?
当前回答
双击方括号或圆括号,可获得括号与圆括号匹配。
其他回答
使用类浏览器显示继承的方法
Apple's API reference documentation does not show methods inherited from a superclass. Sometimes, though. it's useful to be able to see the full range of functionality available for a class -- including a custom class of your own. You can use the Class Browser (from the Project menu) to display a flat or hierarchical list of all the classes related to a current project. The upper pane on the right hand side of the browser window shows a list of methods associated with the object selected in the browser. You can use the Configure Options sheet to select "Show Inherited Members" to show inherited methods as well as those defined by the selected class itself. You click the small book symbol to go to the corresponding documentation.
在选择文本时按住选项可选择文本的不连续部分。 按住选项,同时单击符号名称下拉菜单,按名称排序,而不是按它们在文件中出现的顺序。
用alt-向前或向后移动一个完整的单词。使用cmd-alt-向前或向后移动历史记录中的文件。使用cmd-alt-在接口和实现之间切换。
用cmd-=跳转到构建错误列表中的下一个错误。使用cmd-shift-f显示多个Find面板。使用cmd-shift-e切换完整的编辑器可见性。
使用cmd-0跳转到项目选项卡,使用cmd-shift-b跳转到构建选项卡,使用cmd-shift-y跳转到调试选项卡(与操作的关键命令相同,添加了shift)。
“Ctrl+左/右箭头”进行字内文本导航。我使用这个特性将光标从变量中的一个“驼峰”跳转到下一个。
Ctrl + 2:访问当前文件中的方法和符号的弹出列表。
这是非常有用的,因为有了这个快捷键,你可以完全使用键盘浏览文件。当你到达列表时,开始输入字符,列表就会选择你要找的符号。