try catch idea快捷键
时间: 2023-10-21 20:24:22 浏览: 104
在使用IDEA时,可以使用快捷键来添加try/catch语句。根据引用,可以使用快捷键Ctrl + Alt + T来添加try/catch块。具体操作是,在想要被try/catch包围的语句上选中,然后按下Ctrl + Alt + T,选择try/catch即可。这样就可以快速添加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/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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [在idea中添加try/catch的快捷键](https://blog.csdn.net/lynn_Kun/article/details/76615222)[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 ]
阅读全文