This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
"surround with try/catch" feature is needed: JBuilder has this feature: when you select a java code and click CTRL+SHIFT+C, it surrounds the code with try-catch lines, required for this code. it would be great if NetBEans has this also
it looks like this issue is already described here. I'm marking my own request as "duplicate of bug #28971". it's a pitty that there are some many good requests, which are not implemented yet :( *** This issue has been marked as a duplicate of 28971 ***
As you can see from issue 35661, the basic version of this feature is already there (in dev builds) - just select a block of code and hit ctrl+alt+S or rightclick on the block and select "Surround with try-catch" in the pop-up menu. As you can also see issue 28971 is a duplicate of 35661 - please do not set something to be a duplicate of a duplicate. I am going to make this a duplicate of issue 35661.
*** This issue has been marked as a duplicate of 35661 ***