Generating try-catch block automatically

Describe your feature request

I would like to have a code action so that whatever text is currently highlighted would automatically be wrapped in a try-catch block, basically duplicating the functionality of Visual Studio Code in this regard.

What problem(s) would this feature solve?

I needed to create a try-catch block. I need to do it manually, and it always closes off the { with a }, so I have to delete that, then figure out where to put the } catch( ){ }. It’s not a show-stopper at all but I’d like somebody to write the code to just do this once, and then all replit users (in Java, or other appropriate languages) would to have to go through this drudgery.

Explain what you were trying to do when you came across the problem leading to this feature request

I was trying to create a try-catch block.


This is a lot like this post here!

You should vote up on it to liken the chance of it being added!