一、Xcode導航欄快捷鍵
1、從左到右依次command+1...8,顯示相應界面;
2、右上角的界面視圖控制,快捷鍵及其功能依次是
command+0->顯示/隱藏導航器面板
command+d->顯示/隱藏Bug面板
command+option+0->顯示/隱藏右側實用工具面板
3、在輔助編輯器中打開文件:在項目導航器中選中文件執行Option+左鍵點擊操作。
一個快速打開Assistant Editor的方式--只需要按住Option鍵並點擊你想要在當前編輯框右邊打開的文件即可。
二、Xcode搜索快捷鍵
1、搜索導航器:Command+Shift+F(command+3);
2、文件跳轉欄:Control+6(鍵入方法/變量名+Enter跳轉)
3、快速打開: Command + Shift + O:快速查找相關class類,
Command + Shift + J 快捷操作,可展示當前你在工程導航器中打開的文件
4、程序中.h 和 .m文件間的快速切換: Control + Command + Up Arrow
三、應用程序編譯和清理(每個開發者必知)
1、運行app: Command + R;
2、清除工程: Command + Shift + K;
3、構建應用程序: Command + B;
4、profile:command+i
5、command+. 停止運行
6、斷點調試F6單步調試、F7跳入,F8繼續
四、編輯代碼
1、代碼縮進
左縮進 command+[
右縮進 command+]
2、代碼編輯
control-F: 向右一個字符(forward)
control-B: 向左一個字符(backward)
control-P: 前一行(previous)
control-N: 後一行(next)
control-A: 去行首
control-E: 到行尾(end)
control-T: 調換光標兩邊的字符(transpose)
control-D: 刪除光標右側字符(delete)
control-K: 刪除本行剩餘的字符(kill)
3、文檔內搜索
Command + F: 搜索
Command + G: 搜索下一處
Shift + Command + G: 搜索上一處
相關更多快捷鍵文章鏈接:
http://www.cnblogs.com/langtianya/p/3888157.html
移動代碼的快捷鍵:
上下移動: command + option + [(上) / ](下)
左右移動: command + ](右) / [(左)
展開/隱藏 代碼的快捷鍵:
command + option + <— (隱藏)
command + option + —>(展開)
全局修改局部變量快捷鍵:
command + control + e
選中 Navigator 快捷鍵:
command + 1 2 3 4...
command + 0(零) // hide navigator
不知道怎麼描述(看圖):
command + option + 1 2 ...
command + option + control + 1 2 ...
command + option + 0 //隱藏右邊
storyboard中快速打開對應的控制器:
command + option + enter
不知道怎麼描述(看圖):
//control + 6 可以彈出方法列表
control + 1 2 3...
隱藏/打開控制檯:
command + shift + y
快速打開全局查詢:
command + shift + f
快速切換到.m文件/.h文件:
command + control + up/down
快速切換到文件的頂部/底部:
command + up/down
刪除光標所在行之前的代碼:
command + delete
刪除光標之前的一個單詞:
option + delete
將光標移動到所在行的最前面/後面:
command + 左 / 右
將光標移動到所在單詞的最前面/後面:
option + 左 / 右
快速切換到文件的頂部/底部:
command + up/down