一、参考
emacs系列文章目录——更新ing
Java Programming in Emacs
二、环境安装
2.1 依赖安装
2.2 安装LSP
2.3 安装插件lsp-mode
M-x package-install [RET] lsp-java [RET]
# 创建 maven 项目
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false
三、lsp使用
3.1 特性
| 特性 | 说明 |
|---|
| 语法检查 | flycheck/lsp-ui |
Code completion,自动填充 | company-capf, complete-at-point |
Javadoc hovers 文档说明 | lsp-ui |
Code actions 代码操作 | lsp-ui |
Code outline 代码纲要 | imenu |
Code navigation 代码导航 | xref |
Code lens (references/implementations) | xref |
Highlights 高亮 | |
Code formatting 格式化 | |
Maven pom.xml project support 支持maven项目 | |
Limited Gradle support 支持gradle项目 | |
Visual debugger 可视化调试 | dap-mode |
Test runner 运行测试 | dap-mode |
Project explorer integration | treemacs |
Integration with Spring Initializr | |
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论