Xcode常用快捷键
代码切换
- Command + control+ 上下箭头键 切换头文件和m.文件
- control+command+ 左箭头 回到你上次打开的页面
- control+command+ 右箭头 回到你前面打开的页面
新建
- 新建项目 command+shift+n
- 新建文件 command+n
自动提示
- ESC: 自动提示列表
- CTRL + .: 参数提示
调试
- Command + . 停止
- F6 单步调试、F7跳入,F8继续
- ^control
- CMD + Y: 编译并调试(触发断点)
文本编辑
- 代码缩进 左缩进 command+[
- 右缩进 command+]
- control-F: 向右一个字符(forward)
- control-B: 向左一个字符(backward)
- control-P: 前一行(previous)
- control-N: 后一行(next)
- control-A: 去行首
- control-E: 到行尾(end)
- control-T: 调换光标两边的字符(transpose)
- control-D: 删除光标右侧字符(delete)
- control-K: 删除本行剩余的字符(kill)
- CMD + [: 左缩进
- CMD + ]: 右缩进
- Command-← 移动到行首
- Command-→ 移动到行尾
- Option-← 向左移动一个单词
- Option-← 向右移动一个单词
网友评论