[轉]xcode快捷鍵總集

tags:    時間:2014-03-23 13:54:57
[轉]xcode快捷鍵全集

轉自:http://www.minroad.com/?p=150

閑來無事,整理一下xcode快捷鍵全集!(5月22日更新)

其實都是設置里的,整理成文件版,方便搜索

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

xcode相關:

關於xcode 可設
偏好設置command+,
清空緩存可設
隱藏xcodecommand+h
隱藏其它command+option+h
顯示全部可設
退出xcodecommand+q

文件相關:

新建項目command+shift+n
新建文件command+n
新建空文件command+control+n
打開command+o
在新窗口中打開 command+option+o
快速打開command+shift+d / command+shift+alt+d (不知區別是什麼)
清空最近打開文件可設
清空最近打開項目可設
Get Infocommand+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 Rulercommand+control+c
Paste Rulercommand+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 linecommand+l
下一個填充control+.
填充列表option+esc
下一個佔位符control+/ (和tab相同)
Edit All in Scopecommand+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 為空可設
編輯項目設置可設
編輯當前Targetcommand+option+e
編輯當前可執行文件command+option+x
===================Build========================
Bulid Resultscommand+shift+b
Bulidcommand+b
Build and Analyzecommand+shift+a
Build and Archive可設
Build and Debugcommand+enter
Bulid and Run 斷點關command+r
Build and Debug 斷點開command+y
Cleancommand+shift+k
Clean All Targets可設
下個Build警告或錯誤command+=
前個Build警告或錯誤command+shift+=
Compilecommand+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相關:


Debugcommand+option+enter
Run 斷點關command+option+r
Debug 斷點開command+option+y
Run with Performance Tool (Shark)可設
Stopcommand+shift+enter
Attach to Process (Process ID) 可設
Debuggercommand+option+y
Mini Debuggercommand+control+左斜上箭頭(不知咋按)
Consolecommand+shift+r
Clear Consolecommand+option+control+r
===================Show========================
斷點command+option+b
Expressions可設
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 Console
Print Roots to Console
Print Referers to Console
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 Expressions Window
===============================================
停用斷點command+control+\
停止objc例外可設
================Manage Brakpoints=================
當前行插入斷點command+\
Add Symbolic Breakpoint可設
Add C++ Exception Breakpoint可設
啟用當前行斷點command+option+\
導入斷點可設
導出斷點可設
===============================================
Fix可設
Pausecommand+option+p
Step Intocommand+shift+i
Step Into Instructioncommand+option+shift+i
Step Overcommand+shift+o
Setp Over Instructioncommand+option+shift+o
Setp Outcommand+shift+t
Next Threadcommand+option+control+上箭頭
Previous Threadcommand+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 Relationshipcommand+control+r
Add Fetch Request
Copy Method Declarations to Clipboard
Copy Method Implementations to Clipboard
Copy Obj-C 2.0 Method Declarations to Clipboard
Copy Obj-C 2.0 Method Implementations to Clipboa
======================Mapping Model===================
Update Source Model
Update Destination Model
Add Missing Property Mappings
===================================================
Show Model Browsercommand+control+b
Collapse Compartments
Expand Compartments
Roll Up Compartments
Roll Down Compartments
======================Diagram=======================
Bring to Frontcommand+control+shift+f
Send to Backcommand+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
Lockcommand+control+l
Unlockcommand+shift+control+l
Zoom incommand+control++
Zoom Outcommand+control+-
Zoom to Fitcommand+control+=
Turn Grid On
Show Grid
Show Page Breaks
Force-Directed Layoutcommand+control+g
Hierarchical Layoutcommand+control+h

Window相關:

最小化command+m
全部最小化command+option+m
Zoom
Bring All to Front
Defaults
Organizercommand+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

 

 

空白的就是可以自己設置的,打字實在打不動了

推薦閱讀文章

Bookmark the permalink ,來源:互聯網