天天看點

Xcode快捷鍵

其實就是設定裡面的快捷鍵變成了文字版,費了我不少工夫。。。希望對大家有幫助

可能有些新手剛用mac,不知與windows鍵對應,現在說明一下,command相當于ms鍵盤的win鍵,option相當于alt,鍵值一樣,系統偏好設定裡面可以更改。

xcode相關:

關于xcode  可設

偏好設定 command+,

清空緩存 可設

隐藏xcode command+h

隐藏其它 command+option+h

顯示全部 可設

退出xcode command+q

檔案相關:

建立項目 command+shift+n

建立檔案 command+n

建立空檔案 command+control+n

打開 command+o

在新視窗中打開   command+option+o

快速打開 command+shift+d / command+shift+alt+d (不知差別是什麼)

清空最近打開檔案 可設

清空最近打開項目 可設

Get Info command+i

顯示檢查器? command+option+i  (效果和Get Info一樣,不知差別)

關閉視窗 command+w

關閉所有視窗 command+option+w

關閉目前項目 command+control+w

關閉目前檔案 command+shift+w

儲存檔案 command+s

儲存所有檔案 command+option+s

另存為 command+shift+s

複本另存為 command+option+shift+s

還原到儲存時狀态 command+u

建立快照 command+control+s (儲存檔案快照,以後可進行對比修改情況)

顯示快照 可設 (File->Snapshots)

列印 command+p

編輯相關:

撤銷 command+z

重複 command+shift+z

剪切 command+x

複制 command+c

粘貼 command+v

粘貼并比對格式 command+option+shift+v

删除 可設

全選 command+a

複制(Duplicate) 可設

重構 command+shift+j (選中方法名)

轉換為objc2.0 可設

=================字型====================

顯示字型 command+t

粗體 可設

斜體 可設

下劃線 可設

變大字号 可設

變小字号 可設

Kern相關 可設

Ligature相關 可設

Baseline相關 可設

顯示顔色 可設

複制樣式 command+option+c

粘貼樣式 command+option+v

=================文本====================

左對齊 command+{

右對齊 command+}

居中 command+豎線 (不知豎線是哪個,沒試出)

Justify                       可設(功能未知)

左縮進 command+[

右縮進 command+]

Show Ruler 可設(功能未知)

Copy Ruler command+control+c

Paste Ruler command+control+v

Balance 可設 (第一次,選中語句,第二次,選中方法體)

重置縮進 可設

=================查找==================== 

項目中查找 command+shift+F

在項目中查找標明文本 可設

查找 可設

查找替換 command+control+f

查找標明文本 可設

查找下一個 command+g

查找上一個 command+shift+g

隐藏查找欄 可設

替換 可設

替換全部 可設

替換并查找下一個 可設

替換并查找上一個 可設

用選擇的查找 command+e

用選擇的替換 command+control+e

跳到光标處 command+j

跳到定義 可設

=================排序====================

按名 可設

按類型 可設

========================================

添加書簽 command+d

go to line command+l

下一個填充 control+. 

填充清單 option+esc

下一個占位符 control+/ (和tab相同)

Edit All in Scope command+control+t (功能未知)

================插入宏=================

c

c++

html

java

objective-c

宏規範

=================拼寫====================

顯示拼寫和文法 command+shift+;

檢查拼寫 command+;

輸入時檢查拼寫 可設

特殊符号 command+option+t

視圖相關:

右上角詳情搜尋 command+option+f

縮放編輯視窗 command+shift+e

縮放編輯視窗滿屏 command+option+shift+e

折疊 command+control+左箭頭

屏開 command+control+右箭頭

屏開所有 control+u

折疊方法 command+control+上箭頭

展開方法 command+control+下箭頭

折疊注釋塊 command+control+shift+上箭頭

展開注釋塊 command+control+shift+下箭頭

焦點跟随 command+option+control+f

==============資訊提示====================

隐藏問題 command+shift+h

所有問題 可設

僅錯誤和警告 可設

僅錯誤 可設

僅Analyzer結果 可設

顯示斷點 可設

==================文本====================

tab設定 可設

是否自動換行顯示 可設

行結束 可設

顯示控制字元 command+shift+6

顯示空格 可設

==============智能分組====================

所有檔案  可設

Targets 可設

Exeutables 可設

書簽 command+shift+m

Symbols 可設

搜尋結果 可設

===================布局====================

顯示導航欄 可設

隐藏狀态欄 可設

顯示收藏欄 可設

顯示頁數控制 可設

===========================================

前進 command+option+右箭頭

下一檔案 command+option+shift+右箭頭

傳回 command+option+左箭頭

上一檔案 command+option+shift+左箭頭

切換頭/源檔案 command+option+上箭頭

組樹中定位 command+option+shift+上箭頭

顯示工具欄 可設

自定義工具欄 可設

 ===================項目====================

項目中标簽切換 command+數字0

類浏覽 command+shift+c

重命名項目 可設

新組 command+option+n

分組 command+option+g

撤銷分組 command+option+shift+g

建立智能組 可設

添加項目 command+option+a

添加檔案到項目 可設

新Target 可設

更新所有Targets 可設

更新目前Target到ipad 可設

================New Build Phase====================

沒做測試不多介紹,隻放出内容

New Copy Files Build Phase

New Run Script Build Phase

New Copy Headers Build Phase

New Copy Bundle Resources Build Phase

New Compile Sources Build Phase

New Link Binary With Libraries Build Phase

New Build Java Resources Build Phase

New Build Resource Manager Resources Build Phase

================================================

新的自定義可執行檔案 可設

設定目前Target 為空 可設

Set Active Architecture 為空 可設

設定目前sdk 為空 可設

設定Build配置 為空 可設

Set Active Executable 為空 可設

編輯項目設定 可設

編輯目前Target command+option+e

編輯目前可執行檔案 command+option+x

===================Build========================

Bulid Results command+shift+b

Bulid command+b

Build and Analyze command+shift+a

Build and Archive 可設

Build and Debug command+enter

Bulid and Run 斷點關 command+r

Build and Debug 斷點開 command+y

Clean command+shift+k

Clean All Targets 可設

下個Build警告或錯誤 command+=

前個Build警告或錯誤 command+shift+=

Compile command+k

Preprocess 可設

Show Assembly Code 可設

Touch 可設

=======================代碼導航及編輯================

注釋 command+/

檔案首行 command+上箭頭

檔案末 command+下箭頭

行首 command+左箭頭

行末 command+右箭頭

上一單詞 option+左箭頭

下一單詞 option+右箭頭

上一拆分單詞 control+左箭頭

下一拆分單詞 control+右箭頭

中間顯示光标位置 control+l

方法組清單 control+2

删除前一單詞 option+delete

删除此行光标前所有内容 control+delete

跨行選取 command+option+滑鼠拖動

Run相關:

Debug command+option+enter

Run 斷點關 command+option+r

Debug 斷點開 command+option+y

Run with Performance Tool (Shark) 可設

Stop command+shift+enter

Attach to Process (Process ID) 可設

Debugger command+option+y

Mini Debugger command+control+左斜上箭頭(不知咋按)

C*****ole command+shift+r

Clear C*****ole command+option+control+r

===================Show========================

斷點 command+option+b

Expressi***** 可設

Global Variables 可設

Memory Browsers 可設

Shared Libraries 可設

===================Debugger Display========================

縱布局 可設

橫布局 可設

Datatips 可設

Step Controls 可設

Source Only 可設

Source And Disassembly 可設

Disassembly 可設

===================Variables View========================

User Data Formatters

Show Type Column

Print Description to C*****ole

Print Roots to C*****ole

Print Referers to C*****ole

Watch Variable

View Value as

Natural

Hexadecimal

OSType

Decimal

Unsigned Decimal

Octal

Binary

Edit Value

Edit Summary Format

View in Memory Browser

View in Window

View in Expressi***** Window

===============================================

停用斷點 command+control+\

停止objc例外 可設

================Manage Brakpoints=================

目前行插入斷點 command+\

Add Symbolic Breakpoint 可設

Add C++ Exception Breakpoint 可設

啟用目前行斷點 command+option+\

導入斷點 可設

導出斷點 可設

Fix 可設

Pause command+option+p

Step Into command+shift+i

Step Into Instruction command+option+shift+i

Step Over command+shift+o

Setp Over Instruction command+option+shift+o

Setp Out command+shift+t

Next Thread command+option+control+上箭頭

Previous Thread command+option+control+下箭頭

Sync with Debugger 可設

Stop on Debugger()/DebugStr() 可設

Enable Guard Malloc 可設

Desing相關:

======================Class Model===================

Quick Model

Go to Declaration

Go to Definition

Go to Documentation

Add Comment

======================Data Model===================

Import

Add Model Version

Set Current Version

Add Entity

Add Attribute            command+control+a

Add Fetched Property

Add Relati*****hip command+control+r

Add Fetch Request 

Copy Method Declarati***** to Clipboard

Copy Method Implementati***** to Clipboard

Copy Obj-C 2.0 Method Declarati***** to Clipboard

Copy Obj-C 2.0 Method Implementati***** to Clipboa

======================Mapping Model===================

Update Source Model

Update Destination Model

Add Missing Property Mappings

===================================================

Show Model Browser command+control+b

Collapse Compartments

Expand Compartments

Roll Up Compartments

Roll Down Compartments

======================Diagram=======================

Bring to Front command+control+shift+f

Send to Back command+control+shift+b

Align Top Edges

Align Bottom Edges

Align Left Edges

Align Right Edges

Align Vertical Centers

Align Horizontal Centers

Make Centered Colum

Make Centered Row

Make Same Width

Make Same Height

Size to Fit

Lock command+control+l

Unlock command+shift+control+l

Zoom in command+control++

Zoom Out command+control+-

Zoom to Fit command+control+=

Turn Grid On

Show Grid

Show Page Breaks

Force-Directed Layout command+control+g

Hierarchical Layout command+control+h

Window相關:

最小化 command+m

全部最小化 command+option+m

Zoom

Bring All to Front

Defaults

Organizer command+control+o

Activity 

Help相關:

開發文檔 command+option+?

快速幫助 command+control+?

Xcode幫助 command+?

Welcome to Xcode

Xcode Quick Start

Xcode Release Notes

Find Documentation for Selected Text

Open man Page

轉載 http://www.cocoachina.com/bbs/simple/?t21501.html

     本文轉自新風作浪 51CTO部落格,原文連結:http://blog.51cto.com/duxinfeng/1208782,如需轉載請自行聯系原作者