1:eclipse设置
(1) 改变高亮显示字符串的背景色(默认暗灰色)在这里设置:
- Window->Preferences->General->Editors->Text Editors->Annotations->Occurrences
(2) 常用快捷键
- eclipse中常用快捷键:http://www.open-open.com/bbs/view/1320934157953/
(3) 修改eclipse字符集:
- 配置workspace的编码格式:windows->Preferences->general->Workspace,右侧Text file encoding,选择Other,改变为GBK;
- 配置工程的编码格式:Project->Preferences->Resource->Text file encoding;
- 配置java文件的编码格式:windows->Preferences->general->ContentTypes->Java Source File->UTF-8 ==Update;
- 做RCP应用的Product输出时、或者插件输出时,则总是出错,要么不能编译通过(输出时要重新compile)、要么输出的插件运行时中文显示乱码。此时需要再RCP应用、或插件Plugin工程的 build.properties中增加一行,javacDefaultEncoding.. = UTF-8。让输出时编译知道java源文件时UTF-8编码。这个设置需要保证所有的java源文件时UTF-8编码格式,如果不全是,可以参考 Eclipse帮中(Plug-in Development Environment Guide > Reference > Feature and Plug-in Build configuration),建议全部java源文件是UTF-8编码。