常用技巧:
括號匹配:雙擊括號,就會顯示這個括號匹配的另一半
常用快捷鍵:
整理整理了我常用的xcode快捷鍵,工欲善其事,必先利其器。mac的鍵盤和ms的還是有些不一樣,得適應一下下。
新建專案 command+shift+n
新建檔案 command+n
新建空檔案 command+control+n
開啟 command+o
關閉視窗 command+w
儲存所有檔案 command+option+s
還原到儲存時狀態 command+u
建立快照 command+control+s (儲存檔案快照,以後可進行對比修改情況)
左縮排 command+[
右縮排 command+]
專案中查詢 command+shift+f
查詢下乙個 command+g
查詢上乙個 command+shift+g
用選擇的查詢 command+e
go to line command+l
下乙個填充 control+.
填充列表 option+esc
顯示拼寫和語法 command+shift+;
檢查拼寫 command+;
開啟標頭檔案 command+shift+d
切換頭/原始檔 command+option+上箭頭
類瀏覽 command+shift+c
bulid and run 斷點關 command+r
build and debug 斷點開 command+y
下個build警告或錯誤 command+=
前個build警告或錯誤 command+shift+=
注釋 command+/
檔案首行 command+上箭頭
檔案末 command+下箭頭
行首 command+左箭頭
行末 command+右箭頭
上一單詞 option+左箭頭
下一單詞 option+右箭頭
中間顯示游標位置 control+l
方法組列表 control+2
刪除此行游標前所有內容 control+delete
斷點 command+option+b
當前行插入斷點 command+\
pause command+option+p
step into command+shift+i
step into instruction command+option+shift+i
step over command+shift+o
setp over instruction command+option+shift+o
setp out command+shift+t
查開發文件 command+option+click
整理了一下xcode快捷鍵,史上最全!
其實就是設定裡面的快捷鍵變成了文本版,費了我不少工夫。。。希望對大家有幫助
可能有些新手剛用mac,不知與windows鍵對應,現在說明一下,command相當於ms鍵盤的win鍵,option相當於alt,鍵值一樣,系統偏好設定裡面可以更改。
xcode相關:
關於xcode 可設
偏好設定 command+,
清空快取 可設
隱藏xcode command+h
隱藏其它 command+option+h
顯示全部 可設
退出xcode command+q
檔案相關:
新建專案 command+shift+n
新建檔案 command+n
新建空檔案 command+control+n
開啟 command+o
在新視窗中開啟 command+option+o
快速開啟 command+shift+d / command+shift+alt+d (不知區別是什麼)
清空最近開啟檔案 可設
清空最近開啟專案 可設
get info command+i
xcode常用快捷鍵
command shift i 除錯進入 command shift o 跳過 command shift p 繼續執行 command shift t 退出當前斷點 conmand 提示 control command 開啟斷點狀態 control 新增 刪除斷點 command 注釋 comma...
XCode常用快捷鍵
xcode常用快捷鍵 隱藏xcode command h 退出xcode command q 關閉視窗 command w 關閉所有視窗 command option w 關閉當前專案 command control w 關閉當前檔案 command shift w 儲存檔案 command s 儲...
Xcode 常用快捷鍵
隱藏xcode command h 退出xcode command q 關閉視窗 command w 關閉所有視窗 command option w 關閉當前專案 command control w 關閉當前檔案 command shift w 儲存檔案 command s 儲存所有檔案 comma...