A, reference
Directory of Emacs series articles – Update ING
Java Programming in Emacs
Two, environmental installation
2.1 Dependency Installation
software | instructions |
---|---|
Java |
|
maven |
2.2 installationLSP
2.3 Installation of Plug-inslsp-mode
M-x package-install [RET] lsp-java [RET]
MVN archetype:generate -dgroupid = com.mycompany.app-dartifactId =my-app - DarchetypeArtifactId = maven archetype - quickstart - 1.4 DinteractiveMode DarchetypeVersion = = false
Three,lsp
use
3.1 features
features | instructions |
---|---|
Syntax checking | flycheck/lsp-ui |
Code completion , automatic filling |
company-capf .complete-at-point |
Javadoc hovers documentation |
lsp-ui |
Code actions Code operation |
lsp-ui |
Code outline Code outline |
imenu |
Code navigation Code navigation |
xref |
Code lens (references/implementations) |
xref |
Highlights The highlighted |
|
Code formatting formatting |
|
Maven pom.xml project support supportmaven project |
|
Limited Gradle support supportgradle project |
|
Visual debugger Visual debugging |
dap-mode |
Test runner Run the test |
dap-mode |
Project explorer integration |
treemacs |
Integration with Spring Initializr |