xcode-preferences-Text Editing-Show : Line numbers (勾選)。以下圖:xcode
xcode-preferences-Text Editing-Show :Code folding ribbon 和 Focus code blocks on hover (勾選)。如上圖↑工具
// codespa
/* code..... */調試
command 0 顯示/隱藏 導航區code
command 1---8 分別切換到下圖導航區的1-8:it
command option 0 顯示/隱藏 工具區io
command option 1-2分別切換到下圖工具區的1-2:編譯
command shift Y 顯示/隱藏 調試區變量
打開/關閉 雙視圖窗口搜索
command alt enter 打開雙視圖窗口
command enter 恢復單視圖窗口
command / 註釋或取消註釋// 可批量
command [ 左縮進
command ] 右縮進
command F 搜索
command <— 光標移到本行前面
command -> 光標移到本行後面
command ↑ 光標移到本頁最上 第一行
command ↓ 光標移到本頁最下 最後行
command shift O 模糊搜索 (全局搜索)
control 1-6 分別表明點擊下圖1-6處。以下圖:
Command A: 全選
Command C: 複製
Command V: 粘貼
Command X: 剪切
Command Z: 撤銷
Command shift Z: 反撤銷
Command O: 打開
Command S: 保存
command R 編譯並運行
command N 新建文件
command shift N 新建項目/工程
command shift K 清理
command S 保存
command control ↓ .h .m文件切換
command control ↑ .h .m文件切換
command + Delete: 刪除光標至行首的內容
command + K: 刪除光標至本段末的內容
command + Y: 將剛剛用Control + K或Command + Delete刪除的內容粘貼至光標所在之處
Xcode--preferences(command ,)--key bindings 如圖:
把本身的代碼拖動到 代碼片斷區域 雙擊 --edit 以下圖:
使用
使用<# variable #>的方式,表示是變量
未完待續。。。