随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。
你的呢?
随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。
你的呢?
当前回答
在PyObjC中,你可以为符号下拉列表做类似的#pragma标记:
#马克:Foo
and
#马克:-
其他回答
在选择文本时按住选项可选择文本的不连续部分。 按住选项,同时单击符号名称下拉菜单,按名称排序,而不是按它们在文件中出现的顺序。
一些技巧可以在Xcode Tools tips中找到。
使用类浏览器显示继承的方法
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.
使用AppKiDo浏览文档。
在Xcode中使用Accessorizer来完成一堆单调、重复的任务。
⌘'来正确格式化(重新缩进)您的代码
编辑:显然重缩进功能(编辑>格式>重缩进)没有默认的快捷方式。我想我很久以前就分配了一个(在Preferences > Key bindings中),甚至不记得了。抱歉误导你了。