本文共 3233 字,大约阅读时间需要 10 分钟。
xcode 快捷
Knowing the Xcode shortcuts would improve your speed and boost your productivity. Today, we will be discussing some of the commonly used shortcuts.
了解Xcode快捷方式将提高您的速度并提高生产力。 今天,我们将讨论一些常用的快捷方式。
Here’s a list of a few basic shortcuts that we all need to know:
这是我们都需要知道的一些基本快捷方式的列表:
⌘ + K is used to do a basic clean
⇧ + ⌘ + K is used to do a complete clean of all build files. This is used when your environment starts to behave weirdlyK + K用于基本清洁
⇧+⌘+ K用于完全清除所有构建文件。 当您的环境开始出现异常行为时使用Let’s next look at some Workspace Shortcuts:
接下来让我们看一些工作区快捷方式:
Hide/Show Navigation Area :⌘ + 0
隐藏/显示导航区域:⌘+ 0
Hide/Show Debugging Area : ⌘+⇧+Y
隐藏/显示调试区域:⌘+⇧+ Y
Hide/Show Utility Area : ⌘+⌥+ 0
隐藏/显示实用区域:⌘+⌥+ 0
Navigation through Inspector Area Tabs: ⌘1…8
浏览“检查员区域”选项卡:⌘1…8
Navigation through Utilities Area Tabs: ⌘1…6
在实用程序区域选项卡中导航:⌘1…6
This can be accessed using the two circles at the top right.
可以使用右上角的两个圆圈进行访问。
Commands to show and hide are:
显示和隐藏的命令是:
Show – ⌘ +⌥ + ⏎
Hide – ⌘ + ⏎显示–⌘+⌥+⏎
隐藏–⌘+⏎We can add comments over a method in documentation formatting as shown below:
我们可以在文档格式中为方法添加注释,如下所示:
To comment or uncomment use : ⌘ + /
要发表评论或取消评论,请使用: ⌘+ /
This shortcut is used to change a variable/method name in the file.
此快捷方式用于更改文件中的变量/方法名称。
Instead of manually fixing each error from the right side error labels, the above command fixes all errors that can be resolved automatically.
上面的命令不是修复右侧错误标签中的每个错误,而是修复了所有可以自动解决的错误。
Use command and option along with the right and left brackets to move the statement above/below the adjacent statements.
使用命令和选项以及左右括号将语句移动到相邻语句的上方/下方。
This shortcut is used to indent the whole code left/right
此快捷方式用于向左/向右缩进整个代码
Add and Remove breakpoints : ⌘ + \
添加和删除断点:⌘+ \
To enable/disable all breakpoints use ⌘ + Y
要启用/禁用所有断点,请使用⌘+ Y
That’s a wrap on this tutorial demonstrating Xcode Shortcuts. Stay tuned for updates!
这是演示Xcode快捷方式的本教程的总结。 请继续关注更新!
翻译自:
xcode 快捷
转载地址:http://tnlzd.baihongyu.com/