Question
NetBeans java.time code completion: missing zone ID list
Cig Finch
0 reputation · 12 Aug 2024, 18:22 UTC
42.6K views0
Goal
To enable automatic completion of all available ZoneId identifiers when invoking ZonedDateTime.now(ZoneId.of("…")) in NetBeans.
Constraints & Uncertainty
NetBeans’ built‑in code completion currently offers only a limited set of zone IDs. Developers must type zone identifiers manually, which is error‑prone for large or uncommon zones. It is unclear whether this behavior is intentional, configurable, or dependent on JDK version or project settings.
Open Questions
- Does NetBeans provide a setting or preference to extend the zone‑ID completion list to include all IDs from
ZoneId.getAvailableZoneIds()? - Can a plugin or external completion provider be integrated to supply the full zone‑ID list without manual typing?
- Is there a documented limitation in NetBeans regarding
java.timecompletion that would explain this omission?