Eclipse经常使用设置

字体设置

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

Ubuntu下偏心的字体是nimbus Mono Lspa

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

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

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

    并将Tab policy 设置为Spaces only。继承

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

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

  相同方式能够设置HTML, JSP默认继承HTMLio

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

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

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

相关文章
相关标签/搜索