随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。

你的呢?


当前回答

在项目模板中设置公司名称的另一种方法是:

在地址本中为自己添加一个联系人 将联系人中的公司字段编辑为您的公司名称 现在选择您的联系人,然后转到菜单,选择卡片->使这是我的卡片 您的联系人卡片现在应该在地址簿粗体确认这一点。

这应该会将您的公司名称添加到所有项目模板中,并为其他应用程序提供更多的自动填充信息!

其他回答

在选择文本时按住选项可选择文本的不连续部分。 按住选项,同时单击符号名称下拉菜单,按名称排序,而不是按它们在文件中出现的顺序。

Cmd+Option+O to open a file in a separate window. Can configure Tab to always indent. I frequently use it to indent an entire file. Ctrl+Arrow keys to move between camel case words. If you have OneTwo, you can move from One to Two with Ctrl+Right arrow. You can use emacs bindings, there's even kill ring! I use the Ctrl+w and Cmd+C together when I need to copy two different pieces of text. In the documentation browser, you can restrict your searches to a particular library, e.g., just iOS 4.2 library. This helps me focus on API available only on a particular iOS/Mac version of the SDK. Cmd+Shift+A to build and analyze.

如果高亮显示搞砸了,如果你的变量没有高亮显示或其他任何东西,只需执行⌘-A⌘-X⌘-V,这将全部选中,剪切和粘贴,所有高亮显示将被纠正。所以只要按住⌘,然后按A X V。

事实上,我可以使用Emacs作为我的编辑器,Xcode作为我的构建器/调试器……在我看来,这是两全其美。

在拆分窗口时按住“选项”以垂直而不是水平拆分窗口。