IntelliJ IDEA Java 中如何快速插入 try / catch

675 阅读1分钟

在 IntelliJ IDEA 中是有快捷键的。

On the Code menu, click Surround With

Ctrl+Alt+T
.

在 Java 的语句中,可以支持下面的一些快捷插入。

  • if
  • if/else
  • while
  • do/while
  • for
  • try/catch
  • try/finally
  • try/catch/finally
  • synchronized
  • Runnable
  • {}

IntelliJ-IDEA-insert-01

www.ossez.com/t/intellij-…