英文:
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[.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论