開發與維運

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

在 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.jpg

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

Leave a Reply

Your email address will not be published. Required fields are marked *