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)
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)
相关文章推荐
- ASP.NET Web API 数据提供系统相关类型及其关系
- C# 命名规范
- java猜数字代码
- 基于gdal用c#读取hdf4文件
- 输入两个字符串,从第一个字符串中删除第二个字符串中的所有字符,例如输入“They are student”,则删除之后的第一个字符串变成了“Thy r stdnts”
- 初学python小技巧【伯乐在线】
- Collections.reverse 代码思考-超越昨天的自己系列(13)
- vs2015中github配置
- PHP - 解决中文乱码问题
- java猜数字代码
- Spring框架
- thinkphp 模板里嵌入 php代码
- 昨天开始学python
- Java 集合类详解
- java-数据类型总结
- 电缆快速检测系统软件设计
- 类目Category
- 养成良好的编程风格--论二分查找的正确姿势
- C++ socket 代理
- yii2 多数据库 事务 跨数据库事务