摘要: 今天设置Eclipse中按Tab键为4个空格,这里标记下!Window-->Preferences-->Java-->Code Style-->Formatter然后右边选择 Edit...按钮,在General Settings页中 Tab policy 右边的下拉框,选择Space only!然后下面的Indentation size 和 Tab size 都设置成你要的空格数即可!一般是4个空格!!注意:3.6之前版本好像设置Window-->Preferences-->General-->Editors-->Text Editors右边的 阅读全文
posted @ 2013-06-10 15:55 Yuan Ping 阅读(387) 评论(0) 推荐(0) 编辑
摘要: debian系统打开Windows下生成的文本文件,会在每行的末尾出现’^M’原因就是Windows和Linux的回车符是不同的在Windows下回车符是\r\n回车换行在Linux下回车符是\n最简单、最常用的解决方法是使用dos2unix命令转换:dos2unix filenamedebian下dos2unix和unix2dos命令在tofrodos包中安装:apt-get install tofrodos安装完之后用dos2unix和unix2dos发现还是不能用,原来是debian里已经不再用这个命令啦,$ dpkg -L tofrodos/./usr/usr/bin/usr/bin/ 阅读全文
posted @ 2013-06-10 15:49 Yuan Ping 阅读(361) 评论(0) 推荐(0) 编辑