Skip to content
Discussion options

You must be logged in to vote

If you use a LSP that supports completions (e.g. eclipselsp for Java) then whenever you get auto-completion results for a class you do not have imported, then ALE will automatically add the import to your file. See in the example below how the LocalDate class is autoimported after selecting an autocompletion item:

Note again that this works only if you have enabled a LSP linter for your language (C?) that support autocompletion with extra edit text attributes. I know eclipselsp does but have no idea about C LSP linters.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ubaldot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants