xcode扩展
While Xcode’s usability has kept improving over the years, it is still far from satisfying. Today, we will explore some great Xcode extensions that you can take advantage of. They can help make you more productive and efficient when working with iOS development in the Xcode environment.
尽管Xcode的可用性多年来一直在提高,但仍然远远不能令人满意。 今天,我们将探索一些可以利用的出色Xcode扩展。 在Xcode环境中进行iOS开发时,它们可以帮助您提高工作效率。
游泳者 (Swimat)
Quickly formatting a block of messy code might be the most common demand for developers.
快速格式化混乱的代码块可能是开发人员最普遍的需求。
Swimat
is an Xcode extension to format your Swift code. It supports the latest Xcode 11. The Re-Indent on Xcode works the same as with Swimat
, but Swimat
is more convenient because it doesn’t need to work with code selection.
Swimat
是Xcode扩展,用于格式化您的Swift代码。 它支持最新的Swimat
上的Re-Indent与Swimat
相同,但是Swimat
更加方便,因为它不需要使用代码选择。
To install and enable the extension, we can download the zip file from the GitHub repo and then enable it in the Extensions in System Preferences.
要安装并启用扩展,我们可以从GitHub存储库下载zip文件,然后在“系统偏好设置”的“扩展”中启用它。
![Enable Extensions at System Preferences](https://miro.medium.com/max/9999/1*JqlkRSlrARm1bycye8ZIug.png)
After installation, to format the currently active file, click Editor -> Swimat -> Format in the Xcode menu.
安装后,要格式化当前活动的文件,请在Xcode菜单中单击Editor-> Swimat-> Format。
![Swimat Demo](https://miro.medium.com/freeze/max/9999/1*X8UZa-2atnKom3f1i12_4w.gif)