Repository navigation
Conversation
The commands show the choices of the "Run As" menu for the current editor or selection in a dialog: the launch shortcuts that apply and the launch configurations that they give. Type to filter, Enter launches, and the dialog selects the last choice first. Shift+F11 opens "Run As..." and Alt+Shift+F11 opens "Debug As...". Without the commands, the keyboard way to the Run As choices is the context menu and its submenu, or one key sequence for each shortcut. The dialog uses the same enablement checks as the menu and launches in the same way. It does not show the "Run Configurations..." item of the menu: the commands "Run Configurations..." and "Debug Configurations..." already exist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This seem to heavily overlap with the work here: Also for UI changes please always provide a screenshot so one can easily see what you want to be changed. |
|
Hi @laeubi, thank you for looking and for the comments. I actually wanted to make 2 PR's. One for the UI part, and the other - adding public API extension (not yet pushed, but coming soon) so that providers add extra entries. I know how long it might take for a final feature to get accepted so I built a standalone plugin that you can install and test in your Eclipse: https://anydoby.com/plugins/quick-launch/ #3021 changes the Run As menu (Ctrl+click opens the configuration dialog); this PR adds a keyboard way (Shift+F11) to the same entries, so they complement each other. I am the keyboard guy and use mouse for games :) so for me (and I hope many others) optimized operation is important. Here's how the shift+F11 dialog looks like when the cursor is in a unit test, for example:
and here a rust file, where both run, debug and individual test launch contributions are available:
I like your idea in #3021 to let shortcut providers contribute extra entries: I have a commit ready that adds |
|
Hy @anydoby thanks for sharing some screens. I think it would be good to join the discussion at #3021 as it goes into a similar direction and maybe this one can then even be a follow up or we find an even better solution that e.g. your additional keybinding demands, the more people participate the more attention something usually get and the faster it can be integrated as we get more confidence its useful not only for some. |
Before, the list showed at most 15 rows, so a project with many test configurations needed scrolling. Now the list shows all choices, up to 60% of the height of the monitor of the dialog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The button and Ctrl+Enter open the launch configuration dialog for the selected choice, before the first launch, as Ctrl+click in the "Run As" menu. For a launch configuration, the dialog opens on it. For a launch shortcut, the dialog uses the Ctrl+click code of the menu. The button is disabled for a shortcut without configuration types, because Ctrl+click launches such a shortcut. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The information dialog already shows the title, for example "Run As". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, @SougandhS, i'll keep this one a draft for now. I'm not sure if API changes should go to a separate PR or in here? |


New commands Run As... (Shift+F11), Debug As... (Alt+Shift+F11) and Profile As... (no key).
Each command shows the choices of the "Run As" menu for the current editor or selection in a small dialog: the launch shortcuts that apply, and the launch configurations that they give. Type to filter, Up/Down to select, Enter to launch. The dialog selects the last choice first, so Shift+F11 and Enter repeats it.
Before, the keyboard way to these choices was the context menu and its submenu, or one key sequence for each shortcut (Alt+Shift+X J, ...). The dialog works for all languages, because it uses only the launch shortcuts.
The idea came from a review in Corrosion: eclipse-corrosion/corrosion#472 (comment)
Tests:
LaunchAsTestsinorg.eclipse.debug.tests.🤖 Generated with Claude Code