Xcode快速鍵大全,xcode快速鍵

來源:互聯網
上載者:User

Xcode快速鍵大全,xcode快速鍵

調整圖片大小的時候按下:option鍵
讓讓控制項跟內容一樣大:command+=

http://www.cr173.com/html/21801_1.html

一、關於運行調試
1、運行,停止,都在工具列的Product裡。
Command + R 運行。
Command + . 停止

2、F6單步調試、F7跳入,F8繼續, 和Eclipse,VS類似

二、導航
這是導航裡的快速鍵

到這裡要解釋一下,有的同學可能不知道裡面的符號代表什麼,那個花鍵大家都知道,是command鍵,其他的幾個鍵那,怎麼在鍵盤上找不到呢?不著急,看圖:

其實分別是咱們常用的option 、control、shift鍵。
1、切換標頭檔和m.檔案,很實用
Command + control+ 上下方向鍵
2、go back,回退,幹嘛用啊,就是回到你上次開啟的頁面。
control+command+ 左箭頭
go forward 回到你前面開啟的頁面
control+command+ 右箭頭
三、檔案 File
建立項目 command+shift+n
建立檔案 command+n
建立空檔案 command+control+n
開啟 command+o
關閉視窗 command+w
儲存所有檔案 command+option+s
還原到儲存時狀態 command+u
四、編輯代碼
1、代碼縮排
左縮排 command+[
右縮排 command+]
2、代碼編輯
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)
3、文檔內搜尋
Command + F: 搜尋
Command + G: 搜尋下一處
Shift + Command + G: 搜尋上一處
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+左斜上箭頭(不知咋按)
Console command+shift+r
Clear Console command+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 可設
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 Relationship command+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 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

最新補充:command+shift+d 開啟標頭檔

相關:

http://www.cnblogs.com/wendingding/p/3751388.html

http://www.cocoachina.com/ios/20140731/9284.html

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.