您可以通过击键来组织整个项目的进口? [英] Can you organize imports for an entire project in eclipse with a keystroke?

查看:110
本文介绍了您可以通过击键来组织整个项目的进口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只要做一个按键,并且eclipse将组织所有java类中的所有导入,而不是仅仅是你正在查看的那个,那不是很好吗?这可能吗?是否有按键?

Wouldn't it be nice to just do a keystroke and have eclipse organize all imports in all java classes instead of just the one you are looking at? Is this possible? Is there a keystroke for it?

推荐答案

选择包资源管理器中的项目,然后按 Ctrl + Shift + O (与单一类版本相同的按键)。应该适用于包裹等。

Select the project in the package explorer and press Ctrl + Shift + O (same keystroke as the single class version). Should work for packages, etc.

这篇关于您可以通过击键来组织整个项目的进口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆