Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不喜欢自动格式如何弄乱空循环体,例如:
for (int i = 0; isTest(i); i++);
for (int i = 0; isTest(i); i++) ;
如何配置eclipse不这样做?
转到Windows-> Preferences,然后在选项表中选择Java-> Code Style-> Formatter,然后根据您的喜好进行配置。
为了将来参考,Preferences您可以在菜单中输入搜索词以查找该词的所有选项 - 因此只需进入Preferences菜单并输入“格式”即可显示所有选项