| <html> |
| <head> |
| <link rel="stylesheet" type="text/css" href="css/tips.css"> |
| </head> |
| <body> |
| |
| |
| <p>When you want to catch exceptions thrown by some code fragment, select it in the editor, press <span class="shortcut">&shortcut:SurroundWith;</span> |
| (<span class="control">Code | Surround With</span>) |
| and choose <span class="control">try / catch</span>. The catch blocks for all the exceptions thrown inside the block will be generated automatically.</p> |
| <p>You can customize the bodies of the generated catch blocks on the |
| <span class="control">Code</span> tab of |
| <span class="control">File | Settings | File and Code Templates</span>.</p> |
| <p>Use other items in the list to surround with other constructs.</p> |
| <p class="image"><img src="images/surround_with.png"></p> |
| |
| |
| |
| </body> |
| </html> |