Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
roycms
IosCodeSpecification
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
IosCodeSpecification
/
xcodeShortcuts.md
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
73 lines (61 loc) · 2.59 KB
master
Breadcrumbs
IosCodeSpecification
/
xcodeShortcuts.md
Copy path
Top
File metadata and controls
Code
Blame
73 lines (61 loc) · 2.59 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# xcode 快捷键
#图标
| 图标| 键盘 |
| :----- | :---- |
| ⌘ | Command |
| ⌃ | Control |
| ⌥ | Option |
| ⇧ | Shift |
#文件快捷键
| 快捷键 | 描述 |
| :----- | :---- |
| ⌘N | 新文件 |
| ⇧⌘N | 新项目 |
| ⌘O | 打开 |
| ⌘S | 保存 |
| ⇧⌘S | 另存为 |
| ⌘W | 关闭窗口 |
#导航快捷键
| 快捷键 | 描述 |
| :----- | :---- |
| ⌘1-8 | 打开 Project/Symbol/Find/Issue/Test/Debug/Breakpoint/Log 导航栏 |
| ⌘0 | 显示/隐藏 左侧 tool panel |
| ⇧⌘Y | 显示/隐藏 控制台 |
| ⌥⌘0 | 显示/隐藏 右侧 tool panel |
| ⌥⌘1-6 | 打开右侧导航栏 |
| ⇧⌘J | 在项目导航中定位当前文件(Reveal in Project Navigator) |
| ⌘J | 焦点切换(Move Focus),可快速定位到编辑界面 |
#搜索快捷键
| 快捷键 | 描述 |
| :----- | :---- |
| ⌘⇧F | 使用项目搜索可以找到某个变量或方法名的被提到的次数。可以依据实例来匹配,并可忽略大小写字母。另外还可以对查找的变量名进行替换。 |
| ⌃⌘Up/Down | .h 和 .m文件间的快速切换 |
| ⇧⌘O | 可以直接跳转到指定的代码文件。 |
| ⌃6 | (键入方法/变量名+Enter跳转)跳转至当前代码文件中的代码行。如果文件中有上千行代码,你可以通过该快捷操作来缩小查找范围,从而在需要的地方插入代码以添加新的功能。 |
| ⌃1 | 该快捷键可打开’Show Related Items‘弹出菜单’。倘若你已经将光标放在了任何方法中,并点击‘⌃1 ’就可以很方便地通过弹出的视图访问该方法的所有调用者和被调用者。 |
#运行调试快捷键
| 快捷键 | 描述 |
| :----- | :---- |
| ⇧⌘K | 清除工程(clean) |
| ⌘B | 构建应用程序 |
| ⌘R | 运行应用程序 |
| ⌘. | 停止运行(Stop) |
| ⌘\ | 设置/取消断点;通过鼠标点击蓝色断点来启用/禁用当前行断点。 |
| ⌘Y | 全局激活或禁用所有的断点,激活进入调试模式(此时断点蓝色可见)。 |
#编辑快捷键
| 快捷键 | 描述 |
| :----- | :---- |
| ⌘[/] | 向前/向后缩进 |
| ⌘/ | 注释选中的代码 |
| ⌥⌘←/→ | 折叠当前代码块 |
| ⌥⇧⌘←/→ | 折叠该文件内所有代码块(方法/函数) |
| ⌥⌘[/] | 当前行上移/下移 |
| ⌃B | 前移光标 |
| ⌃F | 后移光标 |
| ⌃P | 移动光标到上一行 |
| ⌃N | 移动光标到下一行 |
| ⌃A | 移动光标到本行行首 |
| ⌃E | 移动光标到本行行尾 |
| ⌃K | 删除本行 |
| ⌃D | 删除光标右边的字符(一个字符) |
| ⌃L | 将插入点置于窗口正中 |
You can’t perform that action at this time.