nmatt opened a new issue, #9195:
URL: https://github.com/apache/netbeans/issues/9195

   ### Description
   
   Within Java record classes, there is no code completion for generating 
constructors. It would be helpful to have them, in analogy to code completion 
for constructors in regular classes.
   
   ### Use case/motivation
   
   In a regular class like for example `class Example { int a; String b; }`, 
invoking code completion offers to generate constructors `Example()` and 
`Example(int a, String b)`. In record classes, it would be similarly useful to 
offer generating a compact constructor (`Example { }`) or a default constructor 
(`Example() { this(...); }`).
   
   When invoking code completion within a record class, while the record type 
name is offered among all other accessible types, for insertion as e.g. a field 
type, this is less convenient that a dedicated constructor completion, because 
the latter would be at the top of the completion popup, and would also insert 
the braces and possibly argument list, etc.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to