在 IntelliJ IDEA 中是有快捷鍵的。java
On the Code menu, click Surround With Ctrl+Alt+T.intellij-idea
在 Java 的語句中,能夠支持下面的一些快捷插入。ide
if
if/else
while
do/while
for
try/catch
try/finally
try/catch/finally
synchronized
Runnable
{}
https://www.ossez.com/t/intellij-idea-java-try-catch/157idea