ECLIPSE常用设置
0. 显示空格和tab:
Windows->perference->General->Editors->Text Editors, check右边show writespace.
1. eclipse/myeclipse中设置space 替换tab: Java->Appearance->code Style->Formatter, edit当前的profile, 设置Tab policy为space only.
2. code和comment的单行最大数也在这个profile中,分别在LineWrapping和Comments中。
3. 显示最大限制线:general->Editors->Text Editors, check "show print margin".
4. alt+/ 不可用的情况:General->Keys中,确保Content Assist 的快捷键是alt+/
when "In Dialogs and Windows"
5. 设置java或js默认编码方式:general -> content type, 选择java或js文件,设置默认编码utf-8或GBK.
6. 设置项目默认编码:每个项目右键property -> resource -> text file coding. 选择合适的编码。