看纯白背景的代码,时间一长眼睛不舒服,于是上网查找,找到了修改颜色的办法。
1.改eclipse背景色
windows->peferences->General->Editors->Text Editor Appearance color options: 选择Background color,去掉System default 在color里选择颜色(<span style="font-family: arial; font-size: 12px; line-height: 18.4px;">色调:85。饱和度:123。亮度:205</span>),然后apply
<img src="https://img-my.youkuaiyun.com/uploads/201212/29/1356744837_7308.PNG" alt="" style="border: none; max-width: 100%;" />
</pre><pre code_snippet_id="205525" snippet_file_name="blog_20140226_3_6150739" id="best-answer-content" class="reply-text mb10" name="code" style="white-space: pre-wrap; word-wrap: break-word; color: rgb(51, 51, 51); margin-top: 0px; margin-bottom: 10px; padding: 0px; font-family: Arial; zoom: 1; line-height: 22px; font-size: 14.4px; background-color: rgb(255, 252, 246);">2.改PyDev注释颜色
PyDev插件安装上后,默认注释的颜色是灰色,看注释非常费力,于是又找到改注释颜色办法。
<pre code_snippet_id="205525" snippet_file_name="blog_20140226_5_8768461" id="best-answer-content" class="reply-text mb10" name="code" style="white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 10px; padding: 0px; font-family: Arial; zoom: 1; font-size: 14.4px; background-color: rgb(255, 252, 246);">windows->peferences->PyDev->Editor Appearance color options: 选择Comments,在color里选择颜色,然后apply
<img src="https://img-my.youkuaiyun.com/uploads/201212/29/1356744854_7980.PNG" alt="" style="border: none; max-width: 100%;" />
</pre><pre code_snippet_id="205525" snippet_file_name="blog_20140226_7_8877928" id="best-answer-content" class="reply-text mb10" name="code" style="white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 10px; padding: 0px; font-family: Arial; zoom: 1; font-size: 14.4px; background-color: rgb(255, 252, 246);">3.显示行号:
<pre code_snippet_id="205525" snippet_file_name="blog_20140226_8_8637948" id="best-answer-content" class="reply-text mb10" name="code" style="white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 10px; padding: 0px; font-family: Arial; zoom: 1; font-size: 14.4px; background-color: rgb(255, 252, 246);">Window -- Prefences -- General -- Editors -- Text Editors -- show line numbers4.打开PyDev中的Python解释器:
在PyDev中,有时想使用直接边写边调试,使用python解释器比较方便,在PyDev中打开方法:
<img src="https://img-my.youkuaiyun.com/uploads/201211/08/1352378058_2444.PNG" alt="" style="border: none; max-width: 100%;" />
</pre><pre code_snippet_id="205525" snippet_file_name="blog_20140226_11_6555587" id="best-answer-content" class="reply-text mb10" name="code" style="white-space: pre-wrap; word-wrap: break-word; margin-top: 0px; margin-bottom: 10px; padding: 0px; font-family: Arial; zoom: 1; font-size: 14.4px; background-color: rgb(255, 252, 246);">现在看代码省力多了
5. 添加已有文件,eclipse添加已有文件还是比较麻烦,除了把拖进‘explorer’,我没有找到直接把外部文件引用进去的方。不过如果可以把源文件拷过来,不产生bug的话,还是拷过来,然后按f5,文件就会出现在'explorer'里了