是否有可能激活带有下划线_
的常量的自动完成?
我有一个包含许多常量的类,其中许多常量相同。例如:
// 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_PRODUCER
和PROPERTY_NAME_COMPONENT_PRODUCER_FRAGMENT_NUMBER
。
键入P_N_C_P
也无济于事。有可能吗?我找不到任何。