Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Code Formatter Plugin

Can some one suggest me a plugin to format HTML and JAVA code with proper indents etc ? Is there any built in option there in Eclipse ?

like image 319
Pit Digger Avatar asked Nov 29 '22 03:11

Pit Digger


2 Answers

Use Source -> Format or CTRL+SHIFT+F

like image 187
atamanroman Avatar answered Dec 05 '22 20:12

atamanroman


Eclipse does have built in Java formatting:

Preferences > Java > Code Style > Formatter

For HTML, you might try something like HTML Tidy. The Web Tools Platform project also includes formatting.

like image 41
Isaac Truett Avatar answered Dec 05 '22 21:12

Isaac Truett