How to format HTML code to clean blank spaces in Intellij idea?


After I click FormatCode button, there is still blank spaces in Line 11. How can it format code thoroughly? Thanks.


1 comment
Comment actions Permalink

Please check Keep white spaces inside: option value in Settings | Editor | Code Style | HTML | Other - do you have the head tag included in the list? If it's not, please check what file type your .html file is associated with: select your .html file in Project tool window, hit F1 (or whatever shortcut is assigned to View | Quick Documentation main menu action) and attach a screenshot of the popup that opens.


Please sign in to leave a comment.