Usually Used Menu and Shortcuts in Xcode 12.4

5 篇文章 0 订阅
4 篇文章 0 订阅

File

New File ⌘ N

Save ⌘ S
Save All ⌥ ⌘ S

Close Tab ⌘ W
Close Other Tabs ⌥ ⌘ W
Close Window ⇧ ⌘ W

Add File ⌥ ⌘ N
Export File
Show File in Finder

Open Project ⌘ O

Edit

View

Show Library ⇧ ⌘ L

Show Code Review ⌥ ⇧ ⌘ ↩︎ (Git)

Editor

Show Related Items ⌃ 1
Show Previous History ⌃ 2
Show Next History ⌃ 3
Show Top Level Items ⌃ 4
Show Group Files ⌃ 5
Show Document Items ⌃ 6

Navigators

Navigator ⌘ 0

Project ⌘ 1
Source Control ⌘ 2
Symbols ⌘ 3
Find ⌘ 4
Issues ⌘ 5
Tests ⌘ 6
Debug ⌘ 7
Breakpoints ⌘ 8
Reports ⌘ 9

Debug Area

Activate Console ⇧ ⌘ C
Show Debug Area ⇧ ⌘ Y

Inspectors

Inspector ⌥ ⌘ 0

File ⌥ ⌘ 1
History ⌥ ⌘ 2
Quick Help ⌥ ⌘ 3 (or ⌥ Click or Force Touch)

Find

Find ⌘ F
Replace ⌥ ⌘ F

Global Find ⇧ ⌘ F
Global Replace ⌥ ⇧ ⌘ F


Change names of variables or methods (except comments):
⌘ Click - Edit All in Scope (Touch Bar): Change names in this file.
⌘ Click - Rename: Change all names in current project.


Change all names (include comments):
(Find ⌘ F or Global Find ⇧ ⌘ F)
double-click to select the word
Use Selection for Find ⌘ E
Find Next ⌘ G
Select Next Occurrence ⌥ ⌘ E
Select All Find Matches (in this file)
Select Find Matches in Selection (in selection)

(Find Previous ⇧ ⌘ G)
(Select Previous Occurrence ⌥ ⇧ ⌘ E)

Navigate

Reveal in Project Navigator ⇧ ⌘ J
Reveal in Symbol Navigator

Show Previous/Next Tab ⇧ ⌘ []
Jump to Definition ⌃ ⌘ J (or Touch Bar or ⌃ ⌘ Click)
Quick Help ⌥ ⌘ 3 (or ⌥ Click or Force Touch)

Editor

Show Completions ⌃ Space (or ⎋ if set in Preferences)

Show Editor Only ⌘ ↩︎
Canvas ⌥ ⌘ ↩︎

Canvas

Refresh Canvas ⌥ ⌘ P

Structure

Shift Left/Right ⌘ []
Move Line Up/Down ⌥ ⌘ []

Toggle Comments ⌘ /
Add Documentation ⌥ ⌘ /

Code Folding

Fold/Unfold ⌥ ⌘ Left/Right
Unfold All
Fold/Unfold Comment Blocks ⌃ ⇧ ⌘ Left/Right

Font Size

Increase ⌘ =
Decrease ⌘ -
Reset ⌃ ⌘ 0

Product

Build ⌘ B

Run ⌘ R
Stop ⌘ .

Window

Developer Documentation ⇧ ⌘ 0
Welcome to Xcode ⇧ ⌘ 1
Devices and Simulators ⇧ ⌘ 2

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值