在Eclipse中使用下划线自动完成大写常量?

时间:2014-09-24 12:02:23

标签: java eclipse autocomplete camelcasing

是否有可能激活带有下划线_的常量的自动完成?

我有一个包含许多常量的类,其中许多常量相同。例如:

// Component details
public static final String PROPERTY_NAME_COMPONENT_MATERIAL_NUMBER = "name";
public static final String PROPERTY_NAME_COMPONENT_OVERALL_WORK_STATUS = "componentOverallWorkStatus";
public static final String PROPERTY_NAME_COMPONENT_RELEASE_STATUS = "freigabestatus";
public static final String PROPERTY_NAME_COMPONENT_DESCRIPTION = "label";
public static final String PROPERTY_NAME_COMPONENT_AMOUNT = "newAmount";
public static final String PROPERTY_NAME_COMPONENT_BASE_QUANTITY_UNIT = "basismengeneinheit";
public static final String PROPERTY_NAME_COMPONENT_PRODUCER = "hersteller";
public static final String PROPERTY_NAME_COMPONENT_PRODUCER_FRAGMENT_NUMBER = "herstellerteilenummer";
public static final String PROPERTY_NAME_COMPONENT_EXCLUDE_ALTERNATIVE_ARTICLE = "componentExcludeAlternativeArticle";
public static final String PROPERTY_NAME_COMPONENT_GENERAL_INFO = "componentGeneralInfo";

它们都以PROPERTY_NAME_COMPONENT开头,如果我现在开始输入

System.out.println(ClassWithThoseConstants.P

然后按Ctrl + Space。现在我得到了P开头的所有常量,这很好。但是现在我想进一步使用camelcase风格,即PNCP,这将导致选项:

PROPERTY_NAME_COMPONENT_PRODUCERPROPERTY_NAME_COMPONENT_PRODUCER_FRAGMENT_NUMBER

键入P_N_C_P也无济于事。有可能吗?我找不到任何。

0 个答案:

没有答案