Deleting opposite bracket
已回答
In Idea is there a way to delete the opposite bracket of a java block ?
In other word the contrary of Surrond With ?
请先登录再写评论。
CtrlW until you select the body, then CtrlX then CtrlW, then CtrlC
-
Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"
....
and the "Unnecessary code block" inspection has a quickfix that removes
useless pairs of brackets.
Alain
ok but i already know this way !
I mean something more easy for the user
Like Unsorround Block ;) (or something similar)
Could be a new feature of IRIDA ?
Already requested: http://www.jetbrains.net/jira/browse/IDEABKL-3052
-
Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"
16 years later and I was looking for the same functionnality which is provided with `CTRL+SHIFT+DELETE`
The action is called Code | Unwrap/Remove, see also https://www.jetbrains.com/help/idea/working-with-source-code.html#unwrap_remove_statement .