Xcode常用快捷键
2015-06-28 00:00
232 查看
一、编辑
1 option + cmd + 向上箭头 m/h文件切换2 ctrl + a 光标移动到行头
3 ctrl + e 光标移动到行末
4 command + G 查找下一个
5 command + w 关闭一个文件
6 option + command + m 窗口最小化
7 command + / 注释
二、调试
8.alt + command + y degug 调试9 alt + command + R Run运行
10 alt + command + p 到下一个断点
11 shift + cmd + o 执行下一步(step over)
12 shift + cmd + i 执行进入函数(step into)
13 command + / 取消断点
14 command + shift + F 查找
15 command + enter 等于bulid and debug
16 shift + cmd + t step out
三、其他
control+F : 在同一行上将光标向右移动control+B : 在同一行上将光标向左移动
control+P : 将光标移动到前一行
control+N : 将光标移动到后一行
control+A : 将光标移动到本行的行首
control+N : 将光标移动到本行的行尾
control+T : 将光标两边的字符对调
control+D : 删除光标右边的字符
control+k : 删除光标所在行 光标后面的代码,便于你重写行尾代码
control + L :将光标插点置于窗口正中。
如何对代码进行首行缩进?
第一种方法:选中需要缩进的代码,按住control键后单击光标,出现pop菜单,然后选择Re-indent selection。
第二种方法:选择需要调整的代码,同时按下command+[ (左移动代码)或 command+](右移动代码)。
相关文章推荐
- docker使用入门,以及保存容器状态
- 解决/usr/bin/ld: cannot find -lxxx 问题
- 让GutHub Atom显示中文
- leetcode 1 Two Sum
- Linux Shell脚本之自动修改IP
- CAS 与 Spring Security 3整合配置详解
- Java中代理简述
- CorelDRAW X7中如何保存图形文件
- CorelDRAW X7软件中B样条工具的使用方法
- 银联POS相关术语
- Python Twisted介绍
- Python Twisted介绍
- 不要用修行傷你的心!
- 如何在 Git 里撤销(几乎)任何操作
- windows server 2008 r2 安装教程
- WampServer修改MySQL密码
- 上班的第五百一十四天
- 安卓NDK的开发
- 高并发下生成订单唯一流水号的方法
- 代码即财富之我学Java对象序列化与反序列化(2)