Eclipse常用设置

字体设置

window——preference——General——Appearance——Colors and Font.

Ubuntu下偏爱的字体是nimbus Mono L

设置制表符(Tab键)的宽度,并将Tab键用空格替换

1. window——preference——General——Editor——Text Editor设置页面:Display Tab Width, 并勾选Insert spaces for tabs.

2. window——preference——Java——Code Style——Formatter设置页面,Edit,在弹出的Editor profile窗口中,Indentation卡片,设置Indentation Size和Tab Size为4;

    并将Tab policy 设置为Spaces only。

3. 设置CSS与HTML的,制表符为空格,且数量为2。

  window——preference——Web——CSS Files——Editor 选择Indent using spacess, 并将Indentation size 设置为2(PS:Eclipse 4.5,通过鼠标滚轮来完成);

  相同方式可以设置HTML, JSP默认继承HTML

4. 设置Javascript的Indentation size与Tab size的值为2

     window——preference——JavaScript——Code Style——Formatter设置页面,Edit,在弹出的Editor profile窗口中,Indentation卡片,设置Indentation Size和Tab Size为2;    并将Tab policy 设置为Spaces only

5. 设置xml的制表符为空格,且数量为2

   window——preference——XML——XML Files——Editor 选择Indent using spacess, 并将Indentation size 设置为2(PS:Eclipse 4.5,通过鼠标滚轮来完成)

Eclipse显示空白符,如空格、制表符、换行符等

window——preference——General——Editor——Text Editor设置页面 勾选 Show whitespace characters

 

posted @ 2015-10-15 11:24  CoderRunner  阅读(373)  评论(0编辑  收藏  举报