Possibly you need to associate the .xhtml
file type to an Editor.
- Open
Window -> Preferences -> General -> Editors -> File Associations
. - Find
.xhtml
. - Associate the
Web Editor
to the.xhtml
file type.
Then try to re-format again with Ctrl + Shift + F.