I love short if statements without braces (PHP) like
if ($x === $y)
echo $z;
If I want to add a few lines (maybe just temporary for debugging
The best solution I got for now are two macros
caret-end-line caret-begin-line "{" insert-break
caret-up caret-end-line remove-word-next selection-match-brace cut-to-clipboard remove-line remove-word-previous insert-break paste-from-clipboard caret-up caret-end-line
Cursor position has to be in the line of code I want to add/remove braces.