更新时间:2022-12-27 15:11:28
我目前获得的***解决方案是两个宏
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.