如何缩进Xcode中的多行? [英] How can I indent multiple lines in Xcode?

查看:75
本文介绍了如何缩进Xcode中的多行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我选择多行代码并希望使用 TAB 键像往常一样缩进时,它只是将它们全部删除。我来自Eclipse,我总是那样做。 Xcode的效果如何?我希望不要逐行;)

When I select multiple lines of code and want to indent them as usual with TAB key, it just deletes them all. I come from Eclipse where I always did it that way. How's that done in Xcode? I hope not line by line ;)

推荐答案

键盘快捷键是 + ] 表示缩进, + [表示不缩进。

The keyboard shortcuts are +] for indent and +[ for un-indent.


  • 在Xcode的首选项窗口中,单击键绑定工具栏按钮。您可以在键盘绑定部分自定义键盘快捷键。

这篇关于如何缩进Xcode中的多行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆