Hi.
Curt used some shortcut to wrap codes into curly braces In WWDC20-10031 "Stacks, Grids, and Outlines in SwiftUI" talk around 11:07.
I find it super usefull.
Do anybody have an idea what the shortcut is?
Thanks.
Curt used some shortcut to wrap codes into curly braces In WWDC20-10031 "Stacks, Grids, and Outlines in SwiftUI" talk around 11:07.
I find it super usefull.
Do anybody have an idea what the shortcut is?
Thanks.
It's not a shortcut, but an additional effect on a text selection of the editor preference:
Preferences > Text Editing > Code completion > Automatically insert closing braces ("}")
(which is turned on by default)
To test it, select a line and then enter a { - line will be wrapped as appeared in the video.
Preferences > Text Editing > Code completion > Automatically insert closing braces ("}")
(which is turned on by default)
To test it, select a line and then enter a { - line will be wrapped as appeared in the video.