如何把VS Code的Language Server Protocol整合到Eclipse中来
Eclipse官方已经在着手做这件事情了,在Oxygen中,Eclipse提供了LSP4E扩展点(language server protocal for eclipse)来支持language server protocal,TM4E(textmate for eclipse)来支持语法高亮。
简单来说,我们可以用一个editor去实现对多种语言的语法补全和高亮显示,就跟VS code的效果一样,是不是很神奇,有木有很惊喜。
下面是官方给的教程,挺简单的,主要原理是利用本机安装的node.js在Eclipse这个平台上运行c#的language server js文件(这个文件在vs code的安装源码里面就能找到)
http://www.eclipse.org/community/eclipse_newsletter/2017/may/article3.php
然后Eclipse Lab里面有一个BlueSky的项目,里面主要是用language server protocol做对各种前段语言的支持。Show u the code:
https://github.com/mickaelistria/eclipse-bluesky
同时附上Microsoft开源的language server protocol库:
https://github.com/Microsoft/language-server-protocol/wiki/Protocol-Implementations
这段时间自己利用language server protocol做了对Groovy的语法补全和高亮支持的Eclipse Plugin,过段时间出一个详细的教程。
下面附上做这个插件时找到的各种资料:
https://www.slideshare.net/mickaelistria/eclipsecon-europe-2016-s-cela-mistria-eclipse-generic-and-extensible-editor-and-language-servers
https://github.com/eclipselabs/lsp4e-python
https://github.com/LucasBullen/LSP4J_Tutorial
最新文章
- 多值(in),范围值(between..and)
- javascript学习8
- bitmap转化base64
- 'libxml/HTMLparser.h' file not found in ASIHTTPRequest 解决方法
- ArrayList,Hashtable,List<;T>;,Dictionary<;K,V>;
- HTML知识点总结以及典型例子讲解
- sql基础查询语句
- 快钱报错:javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name解决
- Oracle学习(十):视图,索引,序列号,同义词
- HDU 2167 Pebbles(状压DP)
- Git版本控制 —— IDE工具(IDEA)
- 【刷题】【LeetCode】000-十大经典排序算法
- robot总结
- Jenkins去GitLab拉取Java代码自动打包
- Docker Kubernetes Service 网络服务代理模式详解
- Lintcode105 Copy List with Random Pointer solution 题解
- sock5协议转换http协议工具polipo使用笔记(Centos7)
- mongodb crud
- uoj 300 [CTSC2017]吉夫特 - Lucas - 分块 - 动态规划
- 2017.6.5项目总结(移动端touch事件)
热门文章
- ODOO 新API修饰符
- 阿里OSS ajax方式 web直传
- 浏览器标准模式与怪异模式-CSS1Compat and BackCompat
- oauth2使用心得-----基本概念以及认证服务器搭建
- PAT甲级——A1026 Table Tennis
- PHP实现定时任务(非linux-shell方式,与操作系统无关)
- 2019.10.25 csp-s模拟测试87 反思总结
- [原创]Machine Learning/机器学习 文章合集
- Leetcode116. Populating Next Right Pointers in Each Node填充同一层的兄弟节点
- PHP苹果推送实现(APNS)