eclipse安装InstaSearch插件(快速搜索)
eclipse正常的搜索可以使用
Ctrl+H 全文搜索
Ctrl+Shift+R 资源类型搜索
但是都不是特别好用,可以看见同类开发工具IDEA的搜索快速简单(IDEA在工作空间类可能建立了索引)
eclipse能同样实现的检索功能插件instasearch
本人介绍下instasearch插件的安装
网络文献检索InstaSearch插件安装InstaSearch插件一般就是让你去eclipse Marketplace中搜索对应插件安装,但是可能搜索不到如下:
或者让你去各种资源url网络安装的,很多url都是访问不到的(国内),导致该插件安装太难了
但是我们可以直接下载源码导出插件进行安装
源码地址 https://github.com/ajermakovics/eclipse-instasearch
下载源码
然后导入eclipse工程(maven导入)
修改工程的jdk编译版本1.8
下载对应lucene的版本(这里是2.9.1)
编辑MANIFEST.MF文件,lucene版本是2.9.1与2.9.2保留2.9.1
添加依赖
点击去除一些不要的依赖
此时工程将不会报错了 ,该文件
Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: InstaSearch Bundle-SymbolicName: it.unibz.instasearch;singleton:=true Bundle-Version: 1.5.7 Bundle-Activator: it.unibz.instasearch.InstaSearchPlugin Bundle-DocURL: https://github.com/ajermakovics/eclipse-instasearch Bundle-UpdateLocation: http://dl.bintray.com/ajermakovics/InstaSearch/ Require-Bundle: org.eclipse.ui;bundle-version="3.7.0", org.apache.commons.lang, org.eclipse.ui.ide, org.eclipse.ui.editors, org.eclipse.ui.workbench.texteditor, org.eclipse.core.runtime, org.eclipse.search, org.eclipse.jface.text, org.eclipse.debug.ui, org.eclipse.jdt.ui;resolution:=optional, org.eclipse.jdt.core;resolution:=optional, org.junit;bundle-version="4.0.0";resolution:=optional Bundle-Vendor: Andrejs Jermakovics Bundle-ClassPath: ., lib/lucene-core-2.9.1.jar, lib/lucene-highlighter-2.9.1.jar, lib/lucene-memory-2.9.1.jar, lib/lucene-queryparser-2.9.1.jar Eclipse-LazyStart: false Bundle-ActivationPolicy: lazy Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: JavaSE-1.6工程插件
此时可以鼠标右键工程启动Eclipse Application debug该插件,或者导出插件的jar包文件用于安装
下图为导出插件jar
选择目录导出即可
导出后可以看见该插件的jar
将该jar文件拷贝至eclipsedropins目录下
重启eclipse可以发现新增了Instasearch插件了,它会为整个工作空间建立索引,所以检索速度是非常快的,可以增加开发效率
最后附上我编译导出的插件jar包地址https://download.csdn.net/download/qq_18497293/85572240https://download.csdn.net/download/qq_18497293/85572240