9、eclipse中*.properties文件中文乱码
Preferences->General->Conent Types->Text->Java Properties File->Default encoding改为UTF-8->Update(必须执行,否则修改无效)->确定
8、eclipse取消拼写检查
Window->Preferences->输入spell->取消”Enable spell checking”勾选
7、eclipse中git提交优化
mars2版本自带的git,默认commit,文件列表中未包含新增文件,需要手动add index,做如下配置即可看到新增文件 Preferences->Team->Git->Committing->勾选Include selected untracked files
6、eclipse反编译插件
Help->Marketplace->查询jad,选择decompiler->install
5、eclipse中修改文件部分内容git提示全部修改
问题原因:Git自作聪明的“换行符自动转换”功能
处理方案:在git配置中关闭该功能core.autocrlf-false,后续修改的文件,即可纠正该问题
(之前造成的修改问题,推荐使用BCompare这个比较工具纠正)
4、eclipse最常用快捷键汇总
Alt+/ 提示可补全代码Alt+Shift+W打开文件夹(选择System Explorer或者按x)Alt+Shift+R 批量改名Ctrl+Shift+S 生成GetSet方法(选择Generate Getters And Setters或者按r)Ctrl+Shift+O 引入包Ctrl+Shift+H 根据关键字查询包Ctrl+Shift+T 快速定位类Ctrl+Shift+R 快速打开资源Ctrl+Alt+H 查询方法被调用情况Ctrl+O 快速OutlineCtrl+E 快速转换编译器Ctrl+M 快速最大化窗口3、maven 国内镜像
setting.xml中配置阿里云的镜像,jar包的下载速度终于可以飞起来了
<mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors>
2、优化eclipse启动效率-精简版
a、取消自动启动插件 具体操作: 在Preferences -> General -> Startup and Shutdown: 将Plug-ins activated on startup中的勾选统统去掉,都没什么卵用 b、减少编译需要验证的项目,提升编译速度 具体操作: 在Preferences -> Validataion 将Validator统统去掉(保留Classpath Dependency Validator选项),需要校验时,手动校验一下(右键validate)
最好勾选的ClassPath Dependency Validator c、关掉自动编译 具体操作: Project -> Build Automatically,去掉勾选
d、显示内存使用情况 具体操作:Preference -> General -> Show heep status,当内存占用过高时,手动GC
e、保存个性化视角Perspective 具体操作:General -> Perspectives,选中自己喜欢的视角设置成默认Make Default
1、安装jetty插件:http://eclipse-jetty.github.io/
install new software>添加如下
name: jetty-run
location: http://eclipse-jetty.github.io/update/