1、添加一段用于演示的代码
2、选中目标代码,右键选择依次选择 Surround With > try/catch Block
3、最终的效果
1、1.选中目标代码
2.右键选择 Surround With > try/catch Block