#pragma mark-command系列
command + 1-8 分別對(duì)應(yīng)Xcode最左側(cè)項(xiàng)目目錄最上面的八個(gè)功能
command + 0 隱藏Xcode最左側(cè)導(dǎo)航欄
command + A?全選
command + B 編譯
command + C 復(fù)制
command + F 當(dāng)前文件查找
command + G 查找下一個(gè)元素
command + H 隱藏當(dāng)前窗口
command + I 工具選項(xiàng),可以查看app 性能?
command + J 焦點(diǎn)切換?
command + K 清除控制臺(tái)打印
command + L 輸入行號(hào),定位到行號(hào)所在行
command + M 最小化
command + N 新建一個(gè)類(lèi)文件
command + O 打開(kāi)當(dāng)前文件所在的系統(tǒng)目錄
command + Q 關(guān)閉
command + R 運(yùn)行
command + S 保存
command + T 創(chuàng)建新的Tab
command + U 測(cè)試
command + V 粘貼
command + W 關(guān)閉當(dāng)前window
command + Y 全局激活或禁用所有的斷點(diǎn)
command + Z 撤銷(xiāo)
command + [ 向前縮進(jìn)
command + ] 向后縮進(jìn)?
command + \ 當(dāng)前行設(shè)置/取消斷點(diǎn)
command + / 注釋光標(biāo)所在行
command + . ?停止運(yùn)行
command + , ?Xcode屬性
command + < 編輯scheme
command + ↑ 光標(biāo)移到文件首行
command + ↓ 光標(biāo)移到文件末行
command + ← 光標(biāo)移到行首
command + → 光標(biāo)移到行末
command + left-click 快速去到當(dāng)前方法的位置
#pragma mark-command+shift系列
command + shift +0 文檔和參考
command + shift + F 全局查找 = command + 3
command + shift + J 在最左側(cè)項(xiàng)目導(dǎo)航中,定位當(dāng)前類(lèi)文件
command + shift + K 清除工程
command + shift + N 新建工程
command + shift + O 快速查找工程內(nèi)的內(nèi)容
command + shift + Y 顯示/隱藏控制臺(tái)
command + shift + S 另存為
#pragma mark-command+option系列
command + option + 1/2 最右端導(dǎo)航欄的兩個(gè)功能模塊
command + option + 0 顯示/隱藏實(shí)用工具面板
command + option + ← 折疊某一函數(shù)或條件分支
command + option + → 展開(kāi)某一函數(shù)或條件分支
command + option + [ 向上移動(dòng)此行
command + option + ] 向下移動(dòng)此行
#pragma mark-command+control系列
command + control + ↑ 切換當(dāng)前類(lèi)的.h/.m文件
command + control + ↓ 切換當(dāng)前類(lèi)的.h/.m文件
#pragma mark-control系列
control + 6 查看當(dāng)前類(lèi)的所有方法列表
control + A 移動(dòng)光標(biāo)到本行行首
control + B 前移光標(biāo)
control + D 刪除光標(biāo)右邊的第一個(gè)字符
control + E 移動(dòng)光標(biāo)到本行行末
control + F 后移光標(biāo)
control + K 刪除光標(biāo)所在行的后半部分
control + L 將插入點(diǎn)置于窗口正中
control + N 移動(dòng)光標(biāo)到下一行
control + P 移動(dòng)光標(biāo)到上一行
control + T 交換光標(biāo)左右兩邊的字符
#pragma mark-option系列
option + ← 光標(biāo)移到上一個(gè)單詞頭部
option + → 光標(biāo)移到下一個(gè)單詞尾部