首页 > 移动平台 > 详细

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

时间:2015-01-06 09:55:35      阅读:430      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!