zoukankan      html  css  js  c++  java
  • Xcode常用快捷键

    随着开发任务的增多,用鼠标方式来按一些命令已经不能够满足需求,因此有必要学习一下快捷键

    隐藏xcode command+h
    退出xcode command+q
    关闭窗口 command+w
    关闭所有窗口 command+option+w
    关闭当前项目 command+control+w
    关闭当前文件 command+shift+w
    保存文件 command+s
    保存所有文件 command+option+s
    还原到保存时状态 command+u

    项目中查找 command+shift+F
    查找下一个 command+g
    查找上一个 command+shift+g

    浏览源文件 command+Double Click 
    打开头文件 command+shift+d 
    切换头/源文件 command+option+上箭头


    撤销 command+z
    重复 command+shift+z
    剪切 command+x
    复制 command+c
    粘贴 command+v
    粘贴并匹配格式 command+option+shift+v
    全选 command+a

    注释 command+/
    文件首行 command+上箭头
    文件末 command+下箭头
    行首 command+左箭头
    行末 command+右箭头
    上一单词 option+左箭头
    下一单词 option+右箭头
    上一拆分单词 control+左箭头
    下一拆分单词 control+右箭头

    Tab :接受代码提示
    Esc :显示代码提示菜单

    下个Build警告或错误 command+=
    前个Build警告或错误 command+shift+=
    以调试方式运行程序 command+y
    继续(在调试中)command+option+p
    编译运行 command+r

    Xcode 代码格式化/自动排版:

    Xcode  版本:4.2和4.2之前的版本
    选中需要格式化代码 -< Edit -< Format -<Re-Indent
    Xcode 版本:4.2之后的版本
    选中需要格式化代码 -< Editor -< Structure -<Re-Indent 或者
    选中需要格式化代码 -< 右击 -<选中 Structure -<Re-Indent

  • 相关阅读:
    [LeetCode] Convert Sorted Array to Binary Search Tree
    [LeetCode] Diameter of Binary Tree
    [LeetCode] Student Attendance Record I
    [LeetCode] Reverse String II
    [LeetCode] Missing Number
    [LeetCode] Intersection of Two Arrays II
    [LeetCode] Base 7
    Ubuntu中firefox设置成中文
    Linux中的查找命令find
    Ubuntu14.04安装配置Chrome浏览器
  • 原文地址:https://www.cnblogs.com/dongweiq/p/3653597.html
Copyright © 2011-2022 走看看