简体   繁体   English

在Eclipse IDE中添加引发声明的快捷方式

[英]Shortcut to add throws declaration in eclipse IDE

I can manually add throws declaration by using mouse(click on error and add throws).But am just wondering is there any shortcut in eclipse to do that without involving mouse. 我可以使用鼠标手动添加throws声明(单击错误并添加throws)。但是我只是想知道Eclipse中是否有任何快捷方式可以在不涉及鼠标的情况下做到这一点。 like Ctrl+shift+o does auto imports Ctrl + Shift + o会自动导入

You can go to preference --> General--> keys to set a hot key for the Command "Add throws declaration" . 您可以转到preference --> General--> keys为命令“添加抛出声明”设置热键。

Make sure to select Editing Java Source in When 确保在“何时”中选择“ Editing Java Source

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM