您可以通过击键来组织整个项目的进口?

问题描述:

只要做一个按键,并且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.