0

I want to view Java documentation like https://docs.oracle.com/en/java/ inside emacs.

I have tried lsp-java with lsp-ui but my setup wasn't enough.

1 Answer 1

-1

Have you read the documentation for lsp-ui yet? When you do, you will find a quick summary of the features in the README file. This includes information about lsp-ui-doc, with nice screenshots of the several ways that it can show the documentation. It also includes a short list of variables that you can customize. First amongst these is lsp-ui-doc-enable, which does exactly what you think it does. Use M-x customize-variable to toggle it. You can use M-x customize-group to customize the lsp-ui-doc group, which will show you all of the variables it uses.

6
  • Yes I have read (default value of lsp-ui-doc-enable is t). The problem is that for a a simple System.out.println(...) only void java.io.PrintStream.println(...) is shown, not a full documentation of the behavior of the method. Commented Oct 18, 2023 at 8:36
  • like here https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/io/PrintStream.html#println() Commented Oct 18, 2023 at 8:45
  • 1
    Do you know for certain that lsp-java provides that level of detail to lsp-ui-doc? Commented Oct 18, 2023 at 9:57
  • this video at 1:15 does: youtube.com/watch?v=Yah69AfYP34 Commented Dec 18, 2023 at 13:45
  • Then use the configuration shown in the video. Commented Dec 18, 2023 at 17:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.