随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。
你的呢?
随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。
你的呢?
当前回答
选择一个文本块并输入cmd-/将其注释掉。再次执行此操作以删除注释字符。
当通过双击平衡字符(括号、大括号、方括号)与大括号匹配结合使用时,这尤其有用。
其他回答
在打开的文件之间来回导航: ⌥⌘← ⌥⌘→
获取Colin Wheeler的完整Xcode键盘快捷键列表(PDF或PNG格式)。把它打印出来,放在显眼的地方(我把它贴在屏幕旁边的墙上)。
编辑: Xcode 3.2的更新版本
编辑2: Xcode 4的更新版本
通过命令行控制Xcode的文本编辑器:xed
> xed -x # open a new untitled document
> xed -xc foo.txt # create foo.txt and open it
> xed -l 2000 foo.txt # open foo.txt and go to line 2000
# set Xcode to be your EDITOR for command line tools
# e.g. for subversion commit
> echo 'export EDITOR="xed -wcx"' >> ~/.profile
> man xed # there's a man page, too
打印完整的Xcode键盘快捷键列表,并把它放在你的显示器旁边。
完整的快捷方式列表可以在这里找到:http://iphonehuston.blogspot.com/2009/08/shortcuts-for-xcode.html