|
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 may customize bodies of the generated catch blocks in
Options | File Templates | Code tab.
Use other items in the list to surround with other constructs.
|