score:-3
CTRL+SHIFT+F works fine.
Just click on the source codes you want to format and then press CTRL+SHIFT+F.
score:0
Eclipse Juno release seems to do a good job. It doesn't handle tags (that is the div tag that closes itself). Not sure why anyone would use it but we have a project that has them sprinkled about, probably from some WYSISYG editor someone was using.
score:1
http://eclipsetidy.sourceforge.net/
You can specify your formatting preferences too: http://eclipsetidy.sourceforge.net/?act=preferences
score:2
go to Window --> preferences --> Web --> HTML files --> Editor.
Make sure "Indentation Size" is not set to zero.
That's what did it for me.
score:67
go to Window --> preferences --> Web --> HTML files --> Editor
.
In the Inline Elements section, select all the elements that you don't want eclipse to inline(continue with same line).
Click Apply and then Ok.
Now re format using ctrl + shift + f
.
Source: stackoverflow.com
Related Query
- How to format all Java files in an Eclipse project at one time?
- How to format html files in Eclipse?
- How do I make eclipse format my tml files like I want them to be?
- How can I disable HTML validation for PHP files in Eclipse Juno 4.2.1?
- How do I tell Eclipse to validate HTML files as PHP?
- How to configure Eclipse to format drools files *.drl?
- How to fix errors in all angular html files in eclipse
- How to format AspectJ *.aj files with eclipse
- How to make a jar in Eclipse that contains HTML files that need to run when the jar is started?
- How to place html files in a Java Dynamic Web Project as a REST service using Eclipse
- How to generate Javadoc HTML files in Eclipse?
- Eclipse Editor: How to change file format from Dos to Unix
- Eclipse and EGit: How to easily review changes to ALL modified files before committing to *local* repository
- How to use Gradle to generate Eclipse and Intellij project files for Android projects
- How do I search files in Eclipse so the results shows files that do NOT contain the search term?
- How to synchronize files over FTP with Eclipse RSE?
- How can I make hidden files display in Eclipse Project explorer when using a RSE linked folder?
- How to change the background color for changed files in eclipse project explorer?
- how to change eclipse html formatting
- How to convert a heap dump in android to eclipse format
- How to switch the order of files (original and modified) in Eclipse Compare window?
- How to use sbt-eclipse to create Eclipse project files of a project?
- How to manage license banners in source files of Eclipse projects
- how do i get eclipse to interpret .ejs files as .html?
- Getting eclipse to highlight and validate HTML files
- How to exclude files from Eclipse indexing (Static Code Analysis)?
- Eclipse Markdown Plugin - How to open Markdown HTML Preview when double clicking a .md file?
- How can I format an entire source tree in Eclipse 3.4 (Ganymede)?
- How can I run a Maven webapp in Eclipse when I use profiles to populate properties files at build time?
- FIle format of eclipse workspace files
More Query from same tag
- Java EE Application in Eclipse
- Eclipse - No project visible in explorer
- Eclipse plugin to run specific method
- Eclipse base HTML5 Websocket and GlassFish
- Working with Eclipse on two computers
- How to combine OfBiz with Eclipse?
- Background of Eclipse's method list description panel is black
- java - duplicate case label
- Build path error after changing jdk compliance level
- "Add unimplemented methods" in Xcode like in Eclipse
- Auto-suggestion in Eclipse XML files refuses to die
- Eclipse dsl application cannot hide unused perspective
- Unable to add breakpoint in eclipse+FDT
- How to disable "Row Selection" for only selected number of rows of viewport layer in a NatTable?
- after included the shiro-core and shiro-web in maven getting error
- error opening trace file: No such file or directory (2)
- Eclipse marketplace update issue
- To open "Eclipse" you need to install the legacy Java SE 6 runtime
- Is there a "Find in Files" shortcut in Eclipse?
- SonarLint is super slow
- How can I find who call my method in a program?
- Code generation in Eclipse
- Git eclipse plugin cannot find network drive repository (Windows)
- How to get the keyboard for email addresses in my app?
- Eclipse problems view not showing warnings
- Android TableRow positioning
- Setting up Eclipse for Android Development and testing
- switching from Eclipse to IntelliJ for Groovy/Grails dev
- In BIRT report label display on the last page
- Maven plugin execution not covered - again