English 中文(简体)
Eclipse的《外地宣言》的格式
原标题:Formatting Field Declarations in Eclipse

履历

问题(变量名称与其类型不符):

public abstract class Filter {
    private long     id;
    protected String expression;
}

• 我如何能自动地将田地连接起来,例如:

public abstract class Filter {
    private   long   id;
    protected String expression;
}

请注意<代码>long前的空间,感谢您!

<><>UPDATE: 我找不到一种定制选择,将类别成员的类型(例如:longString)与单体格式备选办法保持一致。 是的,将类别成员的姓名(例如:idexpression)加以统一,但并非其类型。 请在上述例子中研究这一问题。 任何解决办法?

最佳回答

没有任何形式选择来做你所建议的事情。 我有两种可能性,你们都不喜欢:

  1. Raise an enhancement request on jdt.ui and describe the feature that you want. Here is the bugzilla link: https://bugs.eclipse.org/bugs/ Or, better yet, submit a patch for the code formatter.
  2. Create your own Eclipse plugin that contributes a custom action to do this special kind of formatting.
问题回答

Window - Pfers - Java - 《法典》的风格——格式――和;《新......》——和《新法》;《适应法》一栏;

现在,急切的<条码> 将确定你的法典:

Window - Pfers - Java - 《法典》的风格——“清洁”――“设计”;“新......

这里,你可以改变你们喜欢你的法典。 然后,通过<代码>Source- Clean Up,将确保这一方式。

你可以写出一种真正复杂的剪辑形式。 但是,你真的 should。

轮班 F将用美丽的Java Spec 合规格式编排你的代码。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签