0

Although my eclipse html editor is configured to add indentation

enter image description here

it is not indenting my html file correctly. I am trying to use ctrl+shift+F and save action. Could some one please help me how to enable indentation on saving or formatting.

enter image description here

Ashish
  • 14,295
  • 21
  • 82
  • 127

1 Answers1

0

This might be the problem. Check the current formatter for HTML files in your machine. For example I have default Formatter for C/C++ source files. Its is named as K&R[built-in].

See below enter image description here Like this you can also check the formatter for HTML file and click on Edit button. New window will popup showing the all details of this formatter. Go to Indentation tab. In General settings group, change the tab policy option from Tab to Spaces then enter the indentation size, save and exit then check.

Chandrayya G K
  • 8,719
  • 5
  • 40
  • 68