eclipse中jsp/html文件 自动排版、字体大小

1、自动排版

window–>preferences–>Web–>HTML Files–>Editor,

将Line width设置为720,使代码不会很容易换行,

然后在Inline Elements中选中第一个拖动滚动条到底部按着Shift点击最后一项,点击Remove,将所有的Inline Element移除,如下图
eclipse中jsp/html文件 自动排版、字体大小
eclipse中jsp/html文件 自动排版、字体大小

2、设置字体大小

设置编辑区、控制台、xml等文本文件字体大小
编辑区设置字体大小:
窗口(Window)-首选项(Preferences)-常规(General)-外观(Appearence)-颜色与字体(Colors And Fonts),在右边的对话框里选择Java - Java Editor Text Font,点击出现的修改(Change)按钮,可以设置显示在在主窗体中程序的字体大小,设置完之后点击右下角的应用(Apply),最后点击确定(OK)即可。

设置控制台字体大小:
Windows–Preferences–General–Appearance–Colors And Fonts–Debug–Console Font,然后点右侧的Change按钮就可以设置字体的大小

eclipse设置xml、txt、properties 文件字体的大小:
eclipse更改xml文件,txt文件,property文件等文件编辑器的字体设置:Window–Preferences–General–Appearance—Colors and Fonts–Basic–Text Font,然后点右侧的Change按钮就可以设置字体的大小