Skip to content

Xcode 快捷键 #212

@bingoogolapple

Description

@bingoogolapple
Owner
  • 左侧面板 command + 0
  • 右侧面板 command + option + 0
  • 底部面板 command + shift + Y

  • 注释 command + option + /
  • 代码补全 esc
  • 格式化代码control + I
  • 查看定义 control + command + J
  • 查看引用 control + command + shift + H
  • 重命名 control + command + E
  • 查看 Apple 文档 command + shift + 0

  • 运行 command + R
  • 构建 command + B
  • 停止运行或构建 command + .
  • 清除构建目录 command + shift + K
  • 清除控制台 command + K

  • 快速查找打开类(文件名、或方法名搜索) command + shift + O
  • 快速定位当前类在项目文件中的位置 command + shift + J
  • 类文件 h 与 m 之间切换 control + command + ↑/↓
  • 查找当前类的方法或变量 control + 6

  • 光标去行首 control + A | command +
  • 光标去行尾 control + E | command +
  • 光标去文件顶部/底部 command + ↑/↓
  • 删除左侧剩余字符 command + delete
  • 删除右侧剩余字符 control + K

  • 选中的代码左移 command + [
  • 选中的代码右移 command + ]
  • 选中的代码上移 option + command + [
  • 选中的代码下移 option + command + ]

  • 收起方法体或类 option + command +
  • 展开方法体或类 option + command +
  • 回到上一个打开的页面 control + command +
  • 回到上一个打开的页面 control + command +

  • 新建文件 command + N
  • 添加文件 option + command + A
  • 新建组文件夹 option + command + N
  • 新窗口打开当前工程 command + shift + T
  • 全屏或退出全屏 control + command + F

  • 在当前文件中查找 command + F
  • 在当前文件查找并替换 option + command + F
  • 在工作空间中查找 command + shift + F
  • 在工作空间中查找并替换 option + command + shift + F

Activity

bingoogolapple

bingoogolapple commented on Jan 5, 2020

@bingoogolapple
OwnerAuthor

增加删除一行,拷贝一行快捷键

code /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist
  • 在 Deletions 下面增加
<key>Delete Current Line</key>
<string>deleteToBeginningOfLine:, moveToEndOfLine:, deleteToBeginningOfLine:, deleteBackward:, moveDown:, moveToBeginningOfLine:</string>
  • 在 Insertions and Indentations 下面增加
<key>Duplicate Current Line</key>
<string>selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteToBeginningOfLine:, deleteBackward:</string>
  • 配置快捷键
    • 删除一行 command + shift + k
    • 拷贝当前行 option + shift + 上下方向键
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @bingoogolapple

        Issue actions

          Xcode 快捷键 · Issue #212 · bingoogolapple/bingoogolapple.github.io