Request: Ctrl Bracket move selection to new line


#1

Lets say we have a 1 liner, and want to expand on it.

if ($foo) echo "blah";

Now lets say I want to do more than just echo blah.

DEFAULT FUNCTIONALITY
I select echo "blah";
I press one of these key combos

Shift-[
Shift-9
[

DEFAULT RESULT
if ($foo) {echo "blah";}

NEW FUNCTIONALITY
I select echo "blah";
I press one of these key combos

Ctrl-Shift-[
Ctrl-Shift-9
Ctrl-[

That wraps my selection and creates newlines and increases the tabbing by 1, like this:
NEW RESULT
if ($foo) {
  echo “blah”;
}

As above this should work for any type of bracket [ { ( as above.
Another example with square brackets
$foo = [1,2];

$foo = [
  [1,2]
];

etc