| Jean-Baptiste Queru | b56ea2a | 2013-01-08 11:11:20 -0800 | [diff] [blame^] | 1 | <html> |
| 2 | <head> |
| 3 | <link rel="stylesheet" type="text/css" href="css/tips.css"> |
| 4 | </head> |
| 5 | <body> |
| 6 | |
| 7 | |
| 8 | <p>When you want to catch exceptions thrown by some code fragment, select it in the editor, press <span class="shortcut">&shortcut:SurroundWith;</span> |
| 9 | (<span class="control">Code | Surround With</span>) |
| 10 | and choose <span class="control">try / catch</span>. The catch blocks for all the exceptions thrown inside the block will be generated automatically.</p> |
| 11 | <p>You can customize the bodies of the generated catch blocks on the |
| 12 | <span class="control">Code</span> tab of |
| 13 | <span class="control">File | Settings | File Templates</span>.</p> |
| 14 | <p>Use other items in the list to surround with other constructs.</p> |
| 15 | <p class="image"><img src="images/surround_with.gif"></p> |
| 16 | |
| 17 | |
| 18 | |
| 19 | </body> |
| 20 | </html> |