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

1
4 comments
Avatar
Permanently deleted user

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

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

I think it would be fine just to delete the contents of the catch in this case. 

0

Ciarangallagher036, thank you for your feedback. Could you please submit a feature request here? On the tracker, others can see your request and add their vote if they find such a tool would be useful, which helps our team to better understand which features/tools our users are eager for. I believe this can help give the best visibility for your request. Thank you!

0

Please sign in to leave a comment.