idea快捷键生成try catch
时间: 2023-10-24 18:28:02 浏览: 157
在使用IDEA时,可以使用快捷键生成try/catch代码块。按下Ctrl+Alt+T(在Windows系统中)或Cmd+Alt+T(在Mac系统中)将弹出一个菜单,然后选择"Surround With"(在Windows系统中)或"Try / Catch"(在Mac系统中)。这将在所选的代码块周围生成一个try/catch代码块。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [在idea中添加try/catch的快捷键](https://blog.csdn.net/weixin_48616345/article/details/131965776)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [java-IDEA快捷键1](https://download.csdn.net/download/weixin_35749796/86304951)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [IDEA快捷键.docx](https://download.csdn.net/download/yl1375146011/12252586)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文