如何在Xcode中使用快捷键换行代码行?

huangapple go评论56阅读模式
英文:

how to wrap the line of code in xcode with a hotkey?

问题

只返回翻译好的部分:

"and I want the gridMaterial to be enclosed with []. Is there a hotkey to just highlight the gridMaterial and press the hotkey? Is there a keyboard shortcut?"

我想要将gridMaterial用[]括起来。是否有一个快捷键只需高亮显示gridMaterial,然后按下快捷键?是否有键盘快捷键?

英文:

let say i have this code:

plane.materials = gridMaterial

and I want the gridMaterial to be enclosed with []. Is there a hotkey to just highlight the gridMaterial and press the hotkey? Is there a keyboard shortcut?

答案1

得分: 1

前往Xcode(顶部菜单)-> 设置 -> 文本编辑 -> 编辑。然后在将所选内容括在匹配分隔符中前的框中勾选。

之后,在您的代码中突出显示任何内容,然后按[

英文:

Go to Xcode (top menu) -> Settings -> Text Editing -> Editing. Then check the box in front of Enclose selection in matching delimiters.

After that highlight what ever the are in your code and press[.

huangapple
  • 本文由 发表于 2023年2月6日 14:40:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/75358070.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定