转载

原文地址:https://blog.csdn.net/com_ma/article/details/73556649

第一种:移除某个类中的

在Java类中按键Ctrl+Shift+O

 

第二种:移除整个包中的

在Package Explorer下右键点击包名,依次选择Source——Organize imports即可

 

第三种:保存时自动移除

也是最方便的,Windows——Preferences——Java——Editor——Save Actions

然后选择Perform the selected action on save,再勾选Organize imports即可

 

相关文章:

  • 2021-08-22
  • 2021-11-08
  • 2021-07-22
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2020-04-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
  • 2021-12-19
  • 2021-08-19
相关资源
相似解决方案