您的位置:首页 > 编程语言

Xcode键盘快捷键,敲代码时狠有用!

2015-11-03 11:27 344 查看
ommand相当于win键;

control相当于Ctrl键;

option相当于Alt键;

command + [                     左移选中的代码

command + ]                     右移选中的代码

command + /                     注释(先选中代码)

tab                                       接受代码自动完成提示

Esc                                      显示代码提示菜单

control + .                          循环浏览代码提示

shift + control + .                 反向循环浏览代码提示

shift + control + S                创建快照

control + /                            移至下一个占位符

command + shift + D           打开文件快速查找对话框

command + option + 向上箭头     查看文件的配套文件(如果当前查看的为 m 文件,则打开 h 文件,反之亦然)

command + shift + O           显示Open Quickly窗口

command + control + Y        继续运行(在调试器中有效)

command + S                     保存当前文件

command + C                     Copy

command + X                      剪切

command + V                      粘贴

command + B                      Build,编译

command + R                      Run,运行

command + F                      文件内搜索

按住 option 键并双击选择的内容,可以查找选中字符的文档帮助;

F5                                         执行到下一个断点(Pause/Continue)

F6                                         执行到下一步(Step Over)

F7                                         跳入函数执行(Step Into)

F8                                         跳出函数执行(Step Out)

control + F                           Forword右移光标一个字符

control + B                           Back左移光标一个字符

control + P                           Previous lien 上移光标

control + N                           Next line 下移光标

control + A                           Line head 移至行头   

control + E                           Line end 移至行尾

control + T                           Transpose 交换光标两边的符合

control + D                           Delete 删除光标右边的字符

control + K                           Kill 删除光标所在行中光标后的代码,

control + L                           将插入点置于窗口正中。

另外,左键点击左上角XCode--》Preferences--》Key Bindings,你可以按照自己的喜好,自定义这些快捷键,提高编程速度。

(文章出处:http://bbs.itheima.com/thread-140463-1-1.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: