To enable Erlang language support in your IDE, you can integrate Erlang Language Server by following these steps:
-
Download Erlang LS according your OS. Unzip the downloaded file which should contain the
erlang_ls
(escript) file which is the language server and copy/paste to your IntelliJ project base dir.
To start it, you will need to use the following command:
escript erlang_ls
-
Open the New Language Server Dialog. This can usually be found under the IDE settings related to Language Server Protocol (LSP). For more information, refer to the New Language Server Dialog documentation.
-
Select Erlang Language Server as the template from the available options.
-
Optional: You may also customize the mappings section according to your preferences.
-
Click OK to apply the changes. You should now have Erlang language support enabled in your IDE:
You could also configure server (you should have completion which will help you to configure server):