对于刚使用idea的小伙伴们可以看下: 1.首先打开idea工具,找到File-->settings-->Editor-->File and Code Templates-->Files,我们选择class文件 2.效果展示: