A plugin for IntelliJ IDEA that embeds a Language Server Protocol server, allowing other editors to use IntelliJ's features.
- IntelliJ IDEA 2018.1.1
- Due to the way the plugin interacts with internal APIs, there currently isn't support for other versions of IDEA. If you're trying to use the plugin with Android Studio, note that the exact same Android support also exists in 2018.1.1.
- Alpha-quality, and probably really unstable.
- Java and Kotlin are currently supported.
- Editing in both IDEA and the LSP client at the same time isn't supported currently.
- The server should work across any LSP client, but some nonstandard features (like using IntelliJ to build and run projects) are only implemented in the Emacs client.
Code completion with snippet parameters
Snippet feature is provided by company-lsp.
Symbol usage highlighting
Highlights read/write usage.
Go to definition
Can also find super method if available.
Go to implementation
Sideline view is provided by lsp-ui.
||:heavy_check_mark:||Used by lsp-ui.|
|Goto Type Definition||
|Document Range Formatting||
|Document on Type Formatting||
|Get Run Configurations||
|Open Project Structure||
|Open Run/Debug Configurations||
|Toggle IDEA Editor Window||
Trying it out
./gradlew runIde in the repository's top level to open a testing instance of IDEA.
Installing the plugin
./gradlew clean buildPlugin in the repository's top level to create the plugin distribution. In IDEA, go to
File -> Settings... -> Plugins -> Install plugin from disk... and select the
.zip file that was output inside
The server will start automatically on TCP port 8080 when the IDE is loaded. You can configure the project SDK inside IDEA before connecting your client or execute the
Open Project Structure command in the client (
lsp-intellij-open-project-structure in Emacs) to open the Project Structure window remotely.
To use the server with Emacs/Spacemacs, see the lsp-intellij repository.
- I didn't like the latency of
eclim-modein emacs has to start a new process to get results from the
eclimdaemon, which takes about 5 seconds per command on my Windows system.
- The Eclipse Java language server doesn't support Java 7, but projects using it are supported in the latest IDEA.
- Support for eclim on Windows has been removed.
- Developer usage of Eclipse itself has fallen over the years.
- The exact same server concept has already existed in the form of intellivim, but it supports Vim only through a custom protocol.