When you want to catch exceptions thrown by some code fragment, select it in the editor, press &shortcut:SurroundWith;
(Code | Surround With...)
and choose "try/catch". It automatically generates catch blocks for all exceptions that are thrown inside the block.
You can customize bodies of the generated catch blocks in the
Code tab of
File | Settings | File Templates. Use other items in the list to surround with other constructs. |