Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 快捷键 #212

Open
bingoogolapple opened this issue Jan 4, 2020 · 1 comment
Open

Xcode 快捷键 #212

bingoogolapple opened this issue Jan 4, 2020 · 1 comment

Comments

@bingoogolapple
Copy link
Owner

bingoogolapple commented Jan 4, 2020

  • 左侧面板 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
@bingoogolapple
Copy link
Owner Author

bingoogolapple commented Jan 5, 2020

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

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
Projects
None yet
Development

No branches or pull requests

1 participant