Is there any convenient way to do all these things at once in Xcode?
Take a selected block of text and enclose it in a set of curly braces, each on their own line, with proper indentation like this:
Before:
idea.ponder()
doSomething()
After selecting the 2 lines and hitting a shortcut:
{
idea.ponder()
doSomething()
}
… preferably with the cursor positioned just before the opening brace.
That way I could just, for instance, type withAnimation or DispatchQueue.main.async or if !tooSleepy and be on my way.
I find myself doing this sort of thing manually so often, and I've never seen a convenient Xcode shortcut. (Though there are shortcuts for indenting, for wrapping in braces without adding newlines, etc.) Am I missing something?
thanks!

