Can I select a block of code and have IntelliJ wrap it with a “try…catch” ?
Is there a keyboard shortcut?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Select the code, and then either:
Code>Surround WithFrom time to time, I like to check the Productivity Guide via the Help > My Productivity menu item. Not only does it tell me all the shortcuts, but it keeps track of how many times I’ve used each one and when I last used it. I can see how well I’m leveraging the shortcuts.