Jarvis
Jarvis

Reputation: 63

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

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?

Upvotes: 1

Views: 400

Answers (1)

udi
udi

Reputation: 3853

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[.

Upvotes: 2

Related Questions