简体   繁体   English

一个项目的Eclipse代码格式不同

[英]Eclipse code formatting behaving differently for one project

I am using eclipse oxygen version. 我正在使用蚀氧版。

I am facing a strange issue in code formatting java projects in eclipse. 我在Eclipse中格式化Java项目的代码时遇到一个奇怪的问题。 I have a custom .epf file for the code formatting and code styling. 我有一个自定义.epf文件,用于代码格式化和代码样式设置。

I have multiple java projects and styling works perfectly fine for all projects except one. 我有多个Java项目,除一个项目外,其他所有项目的样式都很好。

In that project whenever I try to do code format it's doing a different format styling than other projects. 在该项目中,每当我尝试进行代码格式化时,它所做的格式样式便与其他项目不同。 This drive me crazy. 这让我发疯。

Can someone please throw some light in finding why only one project styling is different? 有人可以帮忙找出为什么只有一个项目样式会有所不同吗?

Look in the project Properties at the 'Java Code Style > Formatter' page. 在“ Java代码样式>格式化程序”页面上的项目属性中查找。

Is the 'Enable project specific settings' option set? 是否设置了“启用项目特定设置”选项? Is the Active Profile different from the main preferences? Active Profile是否与主要首选项不同?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM