eclipse 基本设置

来源:互联网 发布:淘宝宝贝收藏有什么用 编辑:程序博客网 时间:2024/06/11 14:32
1. eclipse中所有的空白(空格,TAB,和回车)显示出来eclipse中的菜单的window->preferences->General->Editors->Text Editors中的Show whitespace characters中来设置。
2. <span style="background-color: rgb(240, 240, 240);">Tab to space</span>
<span style="color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px; background-color: rgb(240, 240, 240);">General</span><span style="color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px; background-color: rgb(240, 240, 240);">-> Editors -> Text Editors</span>
<p style="line-height: 19.5px; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;">在右侧找到Displayed tab width:</p><p style="line-height: 19.5px; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;">把下面的“Insert spaces for tabs” 勾选上,</p>
<span style="color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px; background-color: rgb(240, 240, 240);">针对java</span>
<p style="line-height: 19.5px; margin: 10px auto; color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;"><span style="background-color: rgb(240, 240, 240);">打开左侧菜单:</span></p><pre code_snippet_id="99870" snippet_file_name="blog_20131206_6_7024729" name="code" style="margin-top: 0px; margin-bottom: 10px; background-color: rgb(255, 252, 246); white-space: pre-wrap; color: rgb(85, 85, 85); font-size: 14px; word-wrap: break-word; padding: 0px; font-family: Arial; zoom: 1; line-height: 22px;">window->preferences-><span style="background-color: rgb(240, 240, 240); color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;">Java -> Code Style -> Formatter,    </span><span style="color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px; background-color: rgb(240, 240, 240);">General settings中的Tab policy为Spaces only,</span>
<span style="background-color: rgb(240, 240, 240); color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px;">3.encoding</span>
<span style="color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px; background-color: rgb(240, 240, 240);">General -> Workspace,</span><span style="color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19.5px; background-color: rgb(240, 240, 240);">选择:Text file encoding为UTF-8,New Text file line delimiter 为 Unix</span><pre code_snippet_id="99870" snippet_file_name="blog_20131206_7_9391280" name="code" style="margin-top: 0px; margin-bottom: 10px; background-color: rgb(255, 252, 246); color: rgb(85, 85, 85); font-size: 14px; line-height: 22px; white-space: pre-wrap; word-wrap: break-word; padding: 0px; font-family: Arial; zoom: 1;">
</pre>4. 在ubuntu下安装eclipse 可能会出现为找到jre的情况 解决办法:将下载的jre包下载,解压到eclipse即可。
5.针对开发不同的语言,可以下载相应的eclipse版本。(http://www.eclipse.org/downloads/index-helios.php)
针对eclipse 能够自动识别php 函数需要安装PDT工具库
http://www.eclipse.org/pdt/
	
				
		
原创粉丝点击