How to generate a try catch code block automatic in Android Studio by shortcut?
<p>In Eclipse, when I enter code <code>Thread.sleep(100)</code>, the code will be wrappered by try catch after entering keys: <kbd>ctrl+1</kbd> and <kbd>enter</kbd>. In Android studio what can I do for wrapper it by try catch easily? Is there a shortcut?</p>