Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eclipse "unsurround" selection (remove try/catch, if etc block)

Hitting Shift+Alt+Z having selected some text in the JDT editor one is presented with the "surround with" menu. I sometimes feel the need to do the opposite - easily remove a try catch or if block etc. So is there any way to do this (there are ways to select everything in a block so it would be easy programmatically - so maybe there is a plugin offering it ?) ?
If no way exists a bug report in eclipse jdt would be appreciated

like image 584
Mr_and_Mrs_D Avatar asked Mar 17 '26 03:03

Mr_and_Mrs_D


1 Answers

In Eclipse you can click within the catch and press Ctrl + 1 and select "Remove catch clause."

like image 111
Brad Johnson Avatar answered Mar 19 '26 21:03

Brad Johnson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!