Java 如何在Eclipse中忽略换行?
我仍然使用Eclipse的换行功能来格式化我的java代码。我不希望Eclipse自动连接包装行,所以我选中了“从不连接已包装行”,但当我格式化代码时,它仍然连接包装行 例如:Java 如何在Eclipse中忽略换行?,java,eclipse,coding-style,format,Java,Eclipse,Coding Style,Format,我仍然使用Eclipse的换行功能来格式化我的java代码。我不希望Eclipse自动连接包装行,所以我选中了“从不连接已包装行”,但当我格式化代码时,它仍然连接包装行 例如: return ((this.isVertical == aLine.isVertical) && (Math.abs(this.a - aLine.a) <= EPSILON) && (Math.abs(this.b - aLine.b) <=
return ((this.isVertical == aLine.isVertical) &&
(Math.abs(this.a - aLine.a) <= EPSILON) &&
(Math.abs(this.b - aLine.b) <= EPSILON));
return((this.isVertical==aLine.isVertical)&&
(Math.abs(this.a-aLine.a)在Workspace->Preferences Java->Code Style->Formatter中,编辑配置文件和换行选项卡,然后选择表达式。在那里有很多很多选项。您可以导出并包括格式化程序设置吗?
return ((this.isVertical == aLine.isVertical) &&
(Math.abs(this.a - aLine.a) <= EPSILON) && (Math.abs(this.b - aLine.b) <= EPSILON));