idea处理(抛出)异常的快捷键/快捷方式 其他 2021-03-25 19:08 0 阅读 idea抛出异常的快捷键 idea中我们遇到的受查异常,会出现红线,通常需要抛出异常或者try/catch异常,如图: 处理异常快捷方式为Alt+Enter ①****try/catch异常为 Surround with try/catch 如图: 结果是: ②****抛出异常是Add exception to method signature是将异常添加到方法的声明上 如图: 结果是: 猜你喜欢