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

2026-02-14 09:23:25

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

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

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

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

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

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

相关推荐
  • 阅读量:193
  • 阅读量:98
  • 阅读量:194
  • 阅读量:171
  • 阅读量:105
  • 猜你喜欢