In an .xhtml file, there should be a shortcut to fix imports for several pre-defined namespace prefixes such as f and h.
*** Bug 235551 has been marked as a duplicate of this bug. ***
Most of this implemented in:
It's not fully finished and I'll work more on that but the basic functionality is already pushed into the trunk. Marking as fixed - remaining TODOs I have noticed.
BTW, the shortcut set to this action is CTRL+SHIFT+I and the action works as a Fix Imports global or Fix Namespaces popup action.
I briefly try it and it seems to work quite well. I have one observation (but perhaps it is in your todo list). When I have a custom (non-standard) prefix for namespace, like
and select jstl/core ns to be imported, would it make sense to import it with prefix "test" instead of "c"?
You are definitely right, could you enter an issue against it to have it tracked? Thanks a lot.
Reported as issue 238155