You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No Java code template context for variable initializer #9272
EditorJava[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)kind:bugBug report or fixneeds:triageRequires attention from one of the committers
There doesn't seem to be a Java code template context for variable initializers (or I can't figure it out).
Language / Project Type / NetBeans Component
No response
How to reproduce
In a suitable Java code context, start declaring a variable with initializer like this:
Strings =
Try to invoke the code template "sw" (imagine the template is changed to a switch expression, so it makes sense in that context). => It is not offered.
Try to find an assignable context under Options > Editor > Code Templates > Java that would make the code template appear. => I couldn't find any.
EditorJava[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)kind:bugBug report or fixneeds:triageRequires attention from one of the committers
Activity