Eclipse:保存时执行format code 和 organize import动作

window --> preferences --> java --> Editor --> Save Actions


选中 Perform the selected actions on save 

选中 Format source code

选中 organize imports


这样,在保存时就能够执行 SHIFT+CTRL+O 和 CTRL+SHIFT+F


你可能感兴趣的:(java,eclipse,import)