很是好用的xcode快進鍵

 

1、文件  File框架

command+shift+n : 新建項目
command+n :新建文件
command+control+n :新建空文件
command+o :打開
command+w :關閉窗口.net

control+command+ f :全屏 
 command+option+s :保存全部文件
command+u :還原到保存時狀態調試

command + t :打開Xcode多個窗口 code

command+shift+[ :向左切換窗口(前提要按command + t快捷鍵)blog

command+shift+]:向右切換窗口(前提要按command + t快捷鍵)文檔

command+`  :項目切換io

shift+command+J :顯示打開的文件在工程目錄下的位置變量

2、編輯代碼搜索

一、代碼縮進command

command+[ :左縮進
command+] : 右縮進

二、代碼編輯

control+F: 向右一個字符(forward)

control+B: 向左一個字符(backward)

control+P: 前一行(previous)

control+N: 後一行(next)

control+A: 去行首

control+E: 到行尾(end)

control+T: 調換光標兩邊的字符(transpose)

control+D: 刪除光標右側字符(delete)

control+K: 刪除本行剩餘的字符(kill)

control+command +e  :全局修改局部變量快捷鍵

option+D :刪除一行 (注:須要手動設置Xcode:https://my.oschina.net/u/2473136/blog/826967)

command + up/down :快速切換到文件的頂部/底部

command + <- / ->  :將光標移動到所在行的最前面/後面

esc: 自動提示列表

command + control+ <- :回退,就是回到你上次打開的頁面。

control+command + ->  :回到你前面打開的頁面

command + control+ up/down :切換頭文件和m.文件

command + option + <— (隱藏代碼塊)

command + option +  —>(展開代碼塊)

三、調試

command + shift + y :隱藏/打開控制檯

command +shift +c :打開控制檯光標落在打印臺

command + \  :添加斷點或取消斷點

command + y :設置所有斷點有效或無效

四、文檔內搜索

command + F: 搜索

command + G: 搜索下一處

shift + command + G: 搜索上一處

command+ shift +f :搜索整個項目

command +shift +o 快速搜索(可搜索蘋果框架類和方法)

command +shift + 0 打開官方幫助文檔

3、選中 Navigator 快捷鍵:

command + 1 2 3 4...7 8

command + 0(零) :隱藏Navigato

相關文章
相關標籤/搜索