gpt4 book ai didi

eclipse - 如何使 Eclipse "Open Type"窗口在列表中首先显示项目类,最后显示第三方类?

转载 作者:行者123 更新时间:2023-12-03 07:38:06 26 4
gpt4 key购买 nike

当您使用项目时,您更经常从项目中打开类,而很少打开第三方类,因此最好首先在“打开类型”窗口中显示项目类。有办法做到这一点吗?

最佳答案

Eclipse 不为 Open Type 对话框提供任何配置。您只能过滤不需要的包,这样它们就不会显示(设置->Java->外观->类型过滤器)。

使用模式来搜索给定包中的类非常简单。假设我想访问 pl.toro 包中的 Node 类。如果我只输入 node ,它将返回 20 多个类,其中我的类位于列表末尾。但是使用 p.Node 模式,该类将是第一个且唯一的。 p 代表包的第一个字母 (pl)。

来自 Eclipse 帮助的更多信息:

Wildcards: "*" for any string and "?" for any character

terminating "<" or " " (space) to prevent the automatic prefix matching, e.g.

"java.*Access<" to match java.util.RandomAccess but not java.security.AccessControlContext

Camel case:

"TZ" for types containing "T" and "Z" as upper-case letters in camel-case notation, e.g.

java.util.TimeZone

"NuPoEx" or "NuPo" for types containing "Nu", "Po", (and "Ex") as parts in camel-case notation, e.g.

java.lang.NullPointerException

terminating "<" or " " (space) to fix the number of camel-case parts, e.g.

"HMap<" and "HaMap<" match "HashMap" and "HatMapper", but not "HashMapEntry" nor "Hashmap".

Both pattern kinds also support package prefixes, e.g. "j.util.*Map<".

关于eclipse - 如何使 Eclipse "Open Type"窗口在列表中首先显示项目类,最后显示第三方类?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9396420/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com