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

相關文章
相關標籤/搜索