idea的trycatch快捷键
时间: 2023-08-17 11:12:24 浏览: 499
Idea快捷键
在使用IDEA时,可以使用快捷键来快速生成try..catch语句。在选择想要被try..catch包围的语句后,按下键盘上的CTRL + ALT + T快捷键,然后点击try/catch即可生成try..catch语句。\[1\]
如果你使用的是macOS系统,可以在IDEA的Perferences中选择Keymap,然后选择Eclipse(macos)copy。在搜索框中输入try catch,就可以看到默认的快捷键。你也可以通过点击add来添加新的快捷键。\[2\]
#### 引用[.reference_title]
- *1* [IDEA中try catch抛异常快捷键](https://blog.csdn.net/m0_64222828/article/details/129333609)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Mac os中idea使用try catch快捷键](https://blog.csdn.net/u011062735/article/details/116834920)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文