Undoing added try/catch

I add try/catch statements for troubleshooting purposes. I would like to see a way to reverse this at any time. Just like comment/uncomment feature.

Abdu

2 comments
Comment actions Permalink

Hello abdu,

what such a feature would do with the statements inside the catch block,
if there are any? And how should it
recognize whether the try/catch exists just for troubleshooting purposes,
or should it be available for any try/catch
statement?


Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


I add try/catch statements for troubleshooting purposes. I would like
to see a way to reverse this at any time. Just like comment/uncomment
feature.

Abdu



0
Comment actions Permalink

It would just remove the try/catch, the added parenthesis and indent the inner statements back to the left. It's basically just an undo operation for what ctrl-alt-j did. It should work with any try/catch.

Abdu

0

Please sign in to leave a comment.