Eclipse代码格式化程序插件 [英] Eclipse Code Formatter Plugin

查看:438
本文介绍了Eclipse代码格式化程序插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以建议我使用适当的缩进等格式格式化HTML和JAVA代码的插件吗? Eclipse中有内置选项吗?

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 ?

推荐答案

Eclipse确实内置了Java格式:

Eclipse does have built in Java formatting:

Preferences > Java > Code Style > Formatter

对于HTML,您可以尝试使用 HTML Tidy 之类的方法. Web工具平台项目还包括格式设置.

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

这篇关于Eclipse代码格式化程序插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆