eclipse用4个空格代替Tab 每行80字符限制提示线显示空格

一。eclipse用4个空格代替Tab

文档 -> Step 1:

Windows ->  Preferences-> General->   Editors-> Text Editors, ->选中“Insert spaces for tabs”。
ウインドウ ->     設 定      ->    一般   -> エデイター -> テキイト.エデイター, ->选中” タブでスぺースを插入 “。

JAVA -> Step 2:

Windows->Preferences->Java->Code Styles->Formatter,点击Acitivie Profile边上的Edit按钮。在打开的页面中的General settings中,令Tab policy为Space only。
ps:修改Profile name然后保存即可。

PHP 同Step2.

二 提示线设置 

Windows -> Prefereces -> General -> Editors -> Text Editors
勾选上 Show print margin
Print margin column 的值设置为 80。

三。在Eclipse中显示空格(space)和制表符(tab)

Window->Preferences->General->Editors->Text Editors->Show whitespace characters

四 Eclipse打开当前所属文件所在windows中的文件夹

依次展开如下菜单:

   Run ---- External Tools ---- External Tools Configurations

   在 program 下面新建一个工具

按下图设置操作:

  

结束。

(ps:MyEclipse 里面的插件名叫:Desktop toolbar,只要选中 Package Explorer 的节点,一点击这个图标就可以在资源管理器中打开文件了。

原文地址:https://www.cnblogs.com/zyoohoo/p/2597805.html