一、工程導航器:Command + 1工具
功能:快速瀏覽代碼、圖片以及用戶界面文件。spa
二、顯示/隱藏導航器面板:Command + 0圖片
三、顯示/隱藏實用工具面板:Command + Option + 0文檔
四、快速打開Assistant Edit 的方式,只需Option + 左擊項目導航器的文件,便可輕鬆在Xib和文件之間連線咯it
搜索快捷鍵io
五、搜索導航器:Command + Shift + F變量
六、文件跳轉欄:Control + 6(鍵入方法/變量名+Enter跳轉)搜索
七、快速打開:Command + Shift + Ocommand
功能:能夠直接跳轉到某個方法定義或者指定的代碼文件。方法
九、.h 和.m文件間的快速切換 Control + Command + Up
十、清除工程:Command + Shift + K
十一、回退go back / go forward->Control + Command + Left/Control + Command + Right
文件File
一、新建項目:Command + Shift + N
二、新建文件:Command + N
三、新建空文件:Command + Control + N
四、打開:Command + O
五、關閉窗口:Command + W
六、保存全部文件:Command + Option + S
七、還原到保存時狀態:Command + U
編輯代碼
一、代碼縮進
左縮進 command+[
右縮進 command+]
二、代碼編輯
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)
三、文檔內搜索
Command + F: 搜索
Command + G: 搜索下一處Shift + Command + G: 搜索上一處
四、註釋: command+/
五、文件首行: command+上箭頭
六、文件末: command+下箭頭
七、行首: command+左箭頭
八、行末: command+右箭頭
九、上一單詞: option+左箭頭
十、下一單詞: option+右箭頭
十一、上一拆分單詞: control+左箭頭
十二、下一拆分單詞: control+右箭頭
1三、中間顯示光標位置: control+l
1四、方法組列表: control+2
1五、刪除前一單詞: option+delete
1六、刪除此行光標前全部內容: control+delete
1七、跨行選取: command+option+鼠標拖動
1八、command+shift+左箭頭或者右箭頭選中整行