Xcode快捷键整理

做iOS开发,避免不了的就是要和Xcode打交道,如果对Xcode的快捷方式熟练的话,这样会对我们项目开发速度有很大的提高。也是对你能力的一种提升,下面就是Abel整理的一些资料,希望有一些帮助:

1、文件类

新建项目:shift  +  command  +  N

新建文件:command  +  N

打开项目:command  +  O

保    存:command  +  S

另  存  为:command  +  shift  +  S

关闭窗口:command  +  W

关闭文件:command  +  shift  +  W

2、编辑类

左  缩  进:command  +  [

右  缩  进:command  +  ]

添加书签:command  +  D

注        释:command  +  /

自动提示:esc

移动到代码提示中的下一个占位符:control  +  /

创建快照:command + control  +  S

前移光标:control  +  F

后移光标:control  +  B

移动光标到上一行:control  +  P

移动光标到下一行:control  +  N

移动光杆到本行行首:control  +  A

移动光杆到本行行尾:control  +  E

交换光杆左右两边的字符:control  +  T

删除光杆右边的字符:control  +  D

删除本行:control  +  K

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

在文中搜索:command  +  F



3、调试类

设置(取消)断点:command  +  

允许(禁止)当前断点:command  +  option  +  

查看全部断点:command+option  +  B

编译并运行:command  +  return   command  +  R

编译并调度:command  +  Y

终止运行或调试:command  +  shift  +  return

继续:command  +  alt

编译:command  +  B

清理:command  +  shift  +  K

编译窗口:command  +  shift  +  B

调试代码窗口:command  +  shift  +  Y

调试控制台:command  +  shift  +  R

主编辑窗口调整:command  +  shift  +  E


4、帮助类

开发手册:command + option + ?

快速帮助:command + control + ?


另外格式化代码方式:选中需要格式化代码 -> 右击 ->选中 Structure ->Re-Indent
原文地址:https://www.cnblogs.com/mekor/p/3915513.html