-
Notifications
You must be signed in to change notification settings - Fork 921
Open
Labels
EditorJava[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)kind:bugBug report or fixBug report or fixneeds:triageRequires attention from one of the committersRequires attention from one of the committers
Description
Apache NetBeans version
Apache NetBeans 29
What happened
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:
String s = 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.
Did this work correctly in an earlier version?
No / Don't know
Operating System
Windows
JDK
21
Apache NetBeans packaging
Apache NetBeans binary zip
Anything else
No response
Are you willing to submit a pull request?
No
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
EditorJava[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)kind:bugBug report or fixBug report or fixneeds:triageRequires attention from one of the committersRequires attention from one of the committers