Xcode "快捷鍵" 及 "菜單功能說明"

Xcode 菜單功能說明


?File文件

Edit編輯

View視圖

Find查找

Navigate導(dǎo)航

Editor編輯

Product產(chǎn)品

Debug調(diào)試

Source Control源代碼管理

Window窗口

Help幫助

File文件

New新建

New Tab 新標(biāo)簽

New Window 新窗口

New File 新文件

New Target…??新目標(biāo)

New Project… 新項(xiàng)目

New Workspace…新的工作區(qū)

New Group新組

New Group from Selection從選擇中建立新組

Open打開

Open Recent打開最近的

Open Quickly快速打開

Close Window關(guān)閉窗口

Close Tab關(guān)閉標(biāo)簽

Close "filename.-"關(guān)閉當(dāng)前文件

Close Project關(guān)閉項(xiàng)目

Save保存

Save As 另存為

Revert還原

Unlock開鎖

Show in Finder在Finder中顯示

Open with External Editor使用外部編輯器打開

Save As Workspace另存為工作組

Project Settings…項(xiàng)目設(shè)置

Source Control源代碼管理

Commit提交

Push??推

Pull??拉

Merge合并

Discard Changes放棄更改

Add添加

Ignore放棄

Mark as Resolved標(biāo)記為已解決

Refresh Status刷新狀態(tài)

Hide Remote Status隱藏遠(yuǎn)程狀態(tài)

Repositories… 庫(kù)

Create Snapshot…創(chuàng)建快照

Page Setup頁(yè)面設(shè)置

Print…打印

Edit編輯

Undo還原

Redo重做

Cut剪切

Copy復(fù)制

Paste粘貼

Special Paste特殊粘貼

Paste and Match Style粘貼并匹配樣式

Duplicate復(fù)制

Delete替換

Select All選擇全部

Find查找

Find in Workspace…在工作組中查找

Find and Replace in Workspace…在工作組中查找和替換

Find查找

Find and Replace查找和替換

Find Next查找下一個(gè)

Find Previous查找上一個(gè)

Replace替換

Replace All替換全部

Replace and Find Next替換和查找下一個(gè)

Replace and Find Previous替換和查找上一個(gè)

Hide Find Bar隱藏查找欄

Use Selection for Find使用查找選擇

Use Selection for Replace使用替換選擇

Filter篩選

Filter in Navigator在navigator中篩選

Filter in Library在庫(kù)中篩選

Format 格式化

Font字體

Text文本

Spelling and Grammar拼寫語(yǔ)法

Substitutions

Transformations轉(zhuǎn)換

Speech

Refactor重構(gòu)

Rename 重命名

Extract提取

CreateSuperclass創(chuàng)建超類

Move Up上移

Move Down下移

Encpsulate封裝

Special Characters特殊字符

View視圖

Navigators導(dǎo)航

Project項(xiàng)目

Symbol符號(hào)

Search搜索

Issue

Debug調(diào)試

Breakpoint斷點(diǎn)

Log日志

Hide Navigator隱藏導(dǎo)航欄

Editor ?編輯

Standard標(biāo)準(zhǔn)

Assistant助理

Version版本

Show Related Items顯示相關(guān)信息

Show Previous Files History顯示上一個(gè)文件的歷史

Show Next Files History顯示下一個(gè)文件的歷史

Show Top Level Items顯示頂級(jí)項(xiàng)目文件

Show Group Files顯示群組文件

ShowCocumentItems

Show Issues顯示問題

Add Assistant Editor卸載輔助編輯器

Remove Assistant Editor

Reset Editor充值編輯器

Assistant Layout輔助工具布局

Assistant Editors on Right輔助工具在右側(cè)

Assistant Editors on Bottom輔助工具在地步

All Editors Stacked Horizontally所有編輯橫排

All Editors Stacked Vertically所有編輯豎排

Utilities實(shí)體工具

File Inspector文件檢測(cè)

Quick Help快速幫助

Identity Inspector身份檢測(cè)

Attributes Inspector屬性檢測(cè)

Size Inspector大小檢測(cè)

Connections Inspector連接檢測(cè)

File Template Library文件模板庫(kù)

Code Snippet Library代碼片段庫(kù)

Object Library??對(duì)象庫(kù)

Media Library??媒體庫(kù)

Hide Utilities隱藏實(shí)體工具

Hide Toolbar隱藏工具欄

Hide Tab Bar隱藏標(biāo)簽欄

Show Debug Area顯示調(diào)試區(qū)

Navigate導(dǎo)航

Reveal in Project Navigator在項(xiàng)目揭示導(dǎo)航

Reveal in Symbol Navigator在符號(hào)揭示導(dǎo)航

Open in Adjacent Editor在相鄰編輯打開

Open in ..打開

Move Focus To Next Area將焦點(diǎn)移動(dòng)到下一個(gè)區(qū)域

Move Focus To Previous Area移動(dòng)焦點(diǎn)至前區(qū)

Move Focus To Editor將焦點(diǎn)移動(dòng)到編輯器

Go Forward前進(jìn)

Go back后退

Jump to Selection跳轉(zhuǎn)到選擇

Jump to Definition跳轉(zhuǎn)到定義

Jump to Next Issue跳轉(zhuǎn)到下一個(gè)問題

Jump to Previous Issue跳轉(zhuǎn)到上一個(gè)文件

Jump to Next Object with Clipped Content跳轉(zhuǎn)到下一個(gè)對(duì)象剪切的內(nèi)容

Jump to Previous Object with Clipped Content跳轉(zhuǎn)到上一個(gè)對(duì)象剪切的內(nèi)容

Editor編輯

Canvas畫布

Show Bounds Rectangles顯示邊界矩形

Show Layout Rectangles布局矩形

Snap to Guides捕捉指南

LiveAutoresizing實(shí)時(shí)自動(dòng)調(diào)整

Graph Paper???方格紙

Checkers??棋盤格

White白色

Gray灰色

Alignment對(duì)準(zhǔn)

Align Left Edges左邊緣對(duì)齊

Align Right Edges右邊緣對(duì)齊

Align Top Edges頂部邊緣對(duì)齊

Align Bottom Edges底部邊緣對(duì)齊

Align Horizontal Centers橫向中心對(duì)齊

Align Vertical Centers豎向中心對(duì)齊

Align Baselines基線對(duì)齊

Align Horizontal Center In Container對(duì)齊容器中的水平中心

Align Vertical Center In Container對(duì)齊容器中的垂直中心

Arrangement排版

Send to Front發(fā)送到頂層

Send to Back發(fā)送備份

Send Forward發(fā)送前進(jìn)

Send Backward下移一層

Embed嵌入

Unembed解除嵌入

Size to Fit大小以適合

Add Horizontal Guide添加橫向指南

Add Vertical Guide添加垂直指南

Reveal in Document Structure顯示在文檔結(jié)構(gòu)

Simulate Document模擬文檔

Product產(chǎn)品

Run運(yùn)行

Test測(cè)試

Profile解析

Analyze分析

Archive存檔

Build For建立

Build For Running建立運(yùn)行

Build For Testing建立測(cè)試

Build For Profiling建立用于分析

Build For Archiving建立以存檔

Perform Action執(zhí)行行動(dòng)

Run Without Building沒有建設(shè)運(yùn)行

Test Without Building沒有建立測(cè)試

Profile Without Building沒有建立解析

Build建立

Clean清除

Stop停止

Debug調(diào)試

Pause暫停

Step Into步入

Step Over跨越

Step Out走出

Step Into Thread單步執(zhí)行成線

Step Into Instruction步入指示

Step Over Thread單步執(zhí)行在線程

Step Over Instruction跨過指示

AddBreakPointat Current Line在當(dāng)前行添加斷點(diǎn)

Deactivate Breakpoints停用中斷點(diǎn)

Shared Libraries??共享庫(kù)

Clear Console清除控制臺(tái)

Window Behavior窗口行為

Normal正常

XcodeBehindXcode的背后

XcodeIn FrontXcode在前面

Attach to Process附加到進(jìn)程

Edit Scheme編輯計(jì)劃

New Scheme???新計(jì)劃

Manage Schemes管理計(jì)劃


xcode常用快捷鍵


command + 1~7

command + 1:快速瀏覽視圖

command + 7:設(shè)置全局?jǐn)帱c(diǎn),

command + 0:隱藏或顯示左邊側(cè)欄

command + b:編譯

command + r:運(yùn)行

command + shift + b:檢測(cè)內(nèi)存是否泄露analyze

command + q:退出xcode

command + Option + 0:實(shí)用工具面板主要用于編譯用戶界面文件時(shí),在只考慮寫代碼的時(shí)候隱藏

command + shift + 0:調(diào)出幫助文檔

command + n:新建文件

command + shift + 1:新建一個(gè)工程

command + i :調(diào)出instrument

Option + left_click:創(chuàng)建一個(gè)分欄顯示另外一個(gè)文件視窗

command + shift + Y:隱藏或現(xiàn)實(shí)

command + Option +回車:顯示當(dāng)前的視圖關(guān)聯(lián)的類

command +回車:隱藏當(dāng)前的視圖關(guān)聯(lián)的類

command + Option +左鍵/右鍵:收縮/展開代碼.注意不要一直收縮或展開,不然xcode會(huì)

command + / :注釋當(dāng)前行/解開當(dāng)前行注釋

command + delete:刪除當(dāng)前行

command + z:回退

command + shift + z :撤銷回退

command + shift + k:清除緩存

command + Option + = :根據(jù)約束,更新約束

command + Option + shift + =:根據(jù)位置,更新約束

command + , (逗號(hào)):調(diào)出xcode偏好設(shè)置

command + y:讓當(dāng)前行斷點(diǎn)活躍或不活躍狀態(tài)(只有當(dāng)前行有斷點(diǎn)才有效果)

command + . (點(diǎn)):停止運(yùn)行程序

command + Option + c: commit代碼

command + Option + X:更新代碼

command + shift + 2:調(diào)出調(diào)式設(shè)備界面管理

command + ~:切換xcode工程界面

command + s:保存代碼

command + controller +上下:在類中切換.m文件和.h文件

command + controller + space:調(diào)出emjio鍵盤

command + /:打一個(gè)斷點(diǎn)



新建項(xiàng)目? ? com + shift +N

新建文件 ? ?com ?+ N

偏好設(shè)置 ?通用 ? com + ,

跳到指定行 com + L

當(dāng)前行加斷點(diǎn) ? ?com + \

移動(dòng)編輯區(qū)最上方 ? com + ?上

移動(dòng)編輯區(qū)最下方 ? com + ?下

移動(dòng)光標(biāo)所在行最左邊 ? com + ? 左

移動(dòng)光標(biāo)所在最右邊 ? com + ? 右

向前/后跳一個(gè)單詞 ?option + 左&右

向前刪除一個(gè)單詞 ? option + delete

刪除光標(biāo)所在行后面的所有字符 ?control + K

打開過的文件之間切換 ?com + option + 左&右

當(dāng)前文件的.h .m之間切換 ? com + control ?+ 上&下

代碼排版 control + i ? ?或com + X 和 com + V

選中當(dāng)前行 ?com + shift + 左&右

取消選中 ?左&右

選中當(dāng)前作用域的局部變量 ? com +control + E

導(dǎo)航區(qū)切換 ?com +1,….8

組件區(qū)切換 com + option + 1…5

關(guān)閉或打開左邊的導(dǎo)航區(qū) ?com + 0

關(guān)閉或打開右邊的組件屬性區(qū) com + option + 0

DeBug區(qū)視圖 ?打開關(guān)閉 ? com + shift + Y

清理 控制臺(tái) ?com ?+ K

打開控制臺(tái)窗口 ? com + shift + C

全局激活或禁用斷點(diǎn) ? com + Y

Xcode 全屏 ? com + control + F

運(yùn)行程序 ?com + R

停止程序 ?com + .

編譯程序 com ?+ B

靜態(tài)分析 ?com + shift + B


最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容