方法注釋
Command+ Option + /
代碼折疊
局部折疊(折疊一個函數(shù)) : Command+Option+Left/Right
全局折疊(折疊當(dāng)前文件下的全部函數(shù)) : Shift+Command+Option+Left/Right
折疊注釋塊:(/* */之間的文字) : Ctrl+Shift+Command+Left/Right
當(dāng)前文件的所有方法 : Command+Option+Shift+Left/Right
格式化代碼
選中要格式化的代碼:Control+I