Android Studio怎么用快捷键打出try-catch

2026-04-12 01:51:22

1、先写一段简单的代码。

Android Studio怎么用快捷键打出try-catch

2、我们选中要添加try-catch的语句,然后同时按住ctrl+alt+T键。这时会出现一个方框,里面除了try-catch外,还有其它一些可以快捷输出的语句。

Android Studio怎么用快捷键打出try-catch

3、最终的样子如图所示。

Android Studio怎么用快捷键打出try-catch

相关推荐
  • 阅读量:38
  • 阅读量:48
  • 阅读量:164
  • 阅读量:166
  • 阅读量:179
  • 猜你喜欢