Eclipse使用记录

来源:互联网 发布:c语言可以编安卓软件吗 编辑:程序博客网 时间:2024/05/16 03:35

Eclipse基础配置:各种原因重新安装Eclipse得重新配置自己熟悉的Eclipse开发界面,故将自己熟悉的配置在博客中记录下来:

1. 设置主题与字体

Eclipse主题设置

Favorite Eclipse Color Theme:Oblivion
If you are on Eclipse 3.6 (Helios), the easiest way to install the plugin is from the Eclipse Marketplace. Go to Help→Eclipse Marketplace…, then search for Eclipse Color Theme and install it.
If you are on Eclipse 3.5 (Galileo), go to Help→Install New Software…, press Add Site and enterEclipse Color Theme as the name and http://eclipse-color-theme.github.com/update as the URL. Then select the new entry from the select box labeled Work with, mark Eclipse Color Theme for installation and proceed.
Please note: If you are using a version of the plugin lower than 0.6, please uninstall and reinstall it following the instructions above. Update site and plugin ID have changed.
After the installation, go to Window→Preferences→General→Appereance→Color Theme to change the color theme.

Eclipse字体设置

Java编辑区字体设置

推荐字体:Consoles、Courier New

windows->Preference->General->Appearence->Colors And Fonts
->Java->Java Editor Text Font->Edit->Apply->OK

XML编辑区字体设置

window–preferences–General–appearance–colors and fonts–Basic– “Text font ”

2. 代码自动补全

Eclipse java代码自动补全

Window->preferences->Java->Editor->Content Assist 再右下角Auto activation triggers for Java里面改为

abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789

Eclipse xml文件自动补全

Windows->preferance->XML->XML Files->Editor->Content Assist
面板最上端 Auto Activation 将Prompt when these characters are inserted后面的文本框中的“<=:”替换成

“<=:abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ”

3. 添加行号

添加行号:

windows–>Preferences–>General–>Editors–>TextEditors
勾选“show line numbers

4. 编码格式

推荐使用UTF-8

Windows–>Preferences->General->Appearances->Workspace->Text fike encoding->Other(UTF-8/GBK)

5. 取消改动Auto BuildingWorkspace

具体操作: Project -> Build Automatically
效果: 在代码修改保存后,不会启动自动编译

6. Eclipse 快速导航栏取消与打开

这里写图片描述

0 0
原创粉丝点击