myeclipse代码排版方式有两种: 1. ctr+f 实现自动排版; 2. myeclipse->Preference->Java->Editor->Sava Actions->选择Format source code。