Reputation: 2798
I have tried to format xhtml
code in eclipse IDE - Juno
using the shortcut by two ways. which are
Ctrl +Shift+F
I did't get any solution from this.
menu -->Source -->Format
I am not able to find Format under Source also, instead it showing only three options. see clear image in below.
what is the problem with my Eclipse IDE
? What i have to change in settings?
Upvotes: 3
Views: 4079
Reputation: 62854
Possibly you need to associate the .xhtml
file type to an Editor.
Window -> Preferences -> General -> Editors -> File Associations
..xhtml
.Web Editor
to the .xhtml
file type.Then try to re-format again with Ctrl + Shift + F.
Upvotes: 2