Bug 558917

Summary: Add quickfix on class for Source -> Generate Constructor ...
Product: [Eclipse Project] JDT Reporter: Lars Vogel <Lars.Vogel>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: Lars.Vogel, rgrunber, stephan.herrmann
Version: 4.14   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Screencast none

Description Lars Vogel CLA 2020-01-08 06:15:48 EST
Created attachment 281409 [details]
Screencast

Would be nice to have quickfixes for Generate Constructor on the class. Currently the menu is almost emptry.

IntelliJ allows to trigger all its generate stuff via one shortcut.
Comment 1 Stephan Herrmann CLA 2020-01-08 16:24:18 EST
I believe that Ctrl+1 is primarily intended for fixing problems ("quick fix"). Quick *assists* are already bending the rules, but putting "all actions that modify the code" into one pop-up sounds like a bad idea. Showing tens of pages of possible options might help to show-off the great number of things we can do, but it will not speed up development, quite to the contrary.

As you say "menu", there is already a (real) menu holding the option you are looking for. What's wrong with Alt+S?

I personally very much like Alt+Shift+T. Perhaps it's possible to create a similar context menu for all generate actions that are applicable at the caret?

Or: what about adopting the concept behind repeated Ctrl+space? I.e.: repeated Ctrl+1 could cycle through a list of contributed categories of modifications:
 - fix
 - assist
 - generate
 - refactor
 - cleanup
 - ...
This way we could indeed offer a single starting point ("if you don't know, what to do, press Ctrl+1"), without overwhelming the user with a huge, unstructured list.
Comment 2 Lars Vogel CLA 2020-09-07 10:51:51 EDT
I think a quickfix or quick assists here would be fine, as the menu is still almost empty.