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

在 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
  • {}

IntelliJ-IDEA-insert-01

https://www.ossez.com/t/intellij-idea-java-try-catch/157idea

相关文章
相关标签/搜索