随着大量的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.
其他回答
⌘命令+双击符号:跳转到符号的定义。
“选项”+双击符号:在符号的“文档”中查找文本。(只有当你安装了他们符号的Doc Set时才有效。)
收藏夹栏:
收藏夹栏就像你在Safari中存储收藏夹一样。我经常用它来存储我现在正在使用的文件的快捷方式(你可以通过拖拽来实现)。一般来说,当我处理一个大型或不熟悉的项目时,这更有用。
要显示收藏夹栏,请选择以下菜单选项:
查看>布局>显示收藏栏
触控板:
向上滑动三个手指-在头文件和源文件之间切换,这比Cmd + Opt + Up更容易; 向下滑动三个手指-在选择类或方法时切换声明和定义,目前发现这两种; 向左滑动三个手指-返回(Cmd + Opt + left); 向右滑动三个手指-前进(Cmd + Opt +右);
用Xcode 3.2.5测试。
对我来说,它一直是:Command⌘+ 0:
在你调试或运行之后,如果你退出iPhone模拟器或调试应用,你会留下调试器窗口。
当你使用“单窗口布局”时,回到编辑器必须点击工具栏,这很烦人(加上你以后需要“删除细节窗格”)。
上面的快捷方式做到了这一点,并让您准备好编写代码。
我最喜欢的是这些常用的编辑器快捷方式:
⌘+ 0将您从调试模式返回到编辑器。 ⌘+ Shift + R带您从调试模式到编辑器视图(项目模式) ⌘+ Shift + E“最大化”编辑器(当你有构建结果等显示在编辑器上方时,这非常有用,你只是想让你的源编辑器更高) Ctrl + 2显示当前代码的大纲 ⌘+ Return运行应用程序 ⌘+ Shift + Return结束应用程序
如果高亮显示搞砸了,如果你的变量没有高亮显示或其他任何东西,只需执行⌘-A⌘-X⌘-V,这将全部选中,剪切和粘贴,所有高亮显示将被纠正。所以只要按住⌘,然后按A X V。