Xcode IDE 最常用快捷鍵

注釋

? ??/**

?????這里是函數(shù)的說(shuō)明,這個(gè)標(biāo)準(zhǔn)的注釋使用"command+option+\"三個(gè)組合鍵調(diào)出

?????@param title 這是參數(shù)1的描述

?????@param description 這是參數(shù)2的描述

?????@return 這是返回值的描述

?????*/

Help

????option+點(diǎn)按:查看選中符號(hào)的幫助提示(Quick Help for Selected Item)。

????option+雙擊:打開(kāi)選中符號(hào)的幫助文檔。

View Navigator

????command+0:Show/Hide left tool panel(Navigator Area)

? ??command+1-8:Project/Symbol/Find/Issue/Test/Debug/Breakpoint/Report Navigat

View Editor Organization

? ??control+1:Show Related Items(例如Superclasses/Subclasses、Callers/Callees、Protocol?Implementor/Implemented、Includes/Included By)??奢斎雽?shí)時(shí)搜索匹配。

????control+5:Show Group Files(當(dāng)前文件夾內(nèi)的所有文件)??奢斎雽?shí)時(shí)搜索匹配。

? ??control+6:Show DocumentItems(當(dāng)前文件的Symbols)。可輸入實(shí)時(shí)搜索匹配。

Eidtor Window/Tab Switch

????command+shift+[/]:切換標(biāo)簽頁(yè)

????單/雙指左右滑動(dòng)(control+command+←/→):在單標(biāo)簽頁(yè)打開(kāi)的多個(gè)文件間切換(Go Back/Forward)

Symbol Jump

????command+L:跳轉(zhuǎn)到指定行。

????shift+command+O:Open Quickly,快速全局查找文件、符號(hào),非常常用!

????control+command+↑/↓:切換頭文件/實(shí)現(xiàn)文件(switch between a source file (.m,*.mm,*.cc) and the associated header?file(.h),Jump toPrevious/NextCounterpart)。

Code Folding

????option+command+←/→:折疊當(dāng)前代碼塊,包括@interface …@end、@implementation …@end

????option+shift+command+←/→:折疊該文件內(nèi)所有代碼塊(方法/函數(shù):{?Methods&Functions}

????control+shift+command+←/→:折疊當(dāng)前注釋塊(/*Comment Blocks*/)

Text Editing

????command+[/]:向前/向后縮進(jìn)(Shift Left/Right)

????option+command+[/]:將當(dāng)前光標(biāo)所在行代碼上移/下移一行(Move Line Up/Down)

????command+/:以雙斜杠(//)注釋選中的代碼,再此按下可取消

Find & Replace

? ??shift+command+F(command+3):在Find Navigator中全局查找??稍冢跴references-General]中設(shè)置Find Navigator Detail的顯示行數(shù)(當(dāng)Navigator Area較窄擠壓時(shí))。

Others

????command+ T : 新建標(biāo)簽

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀(guān)點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容