注釋
? ??/**
?????這里是函數(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)簽