码迷,mamicode.com
首页 > 移动开发 > 详细

Android win7系统,Eclipse编写代码时,在sourceInsight中查看出现对不齐的问题

时间:2015-01-06 09:56:30      阅读:177      评论:0      收藏:0      [点我收藏+]

标签:

win7系统,Eclipse编写代码时,在sourceInsight中查看出现对不齐的问题:

用空格键代替tab键,步骤如下:

Step 1:
Windows->Preferences->General->Editors->Text Editors,选中“Insert spaces for tabs”。


Step 2:
Windows->Preferences->Java->Code Styles->Formatter,点击Acitivie Profile边上的Edit按钮。在打开的页面中的General settings中,令Tab policy为Space only。

以上两步即可


Eclipse工作区设置默认编辑宽度

1)打开Window  => Preferences窗口


2)打开Formatter属性页从Java => CodeStyle => Formatter


3) 单击New创建一个自己的Formatter


4)选择Line Wrapping属性页,并设置Maximum line width 为120


5)然后一路OK就可以了


Android win7系统,Eclipse编写代码时,在sourceInsight中查看出现对不齐的问题

标签:

原文地址:http://blog.csdn.net/yelangjueqi/article/details/42454077

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!