Search code examples
javavisual-studio-code

How to disable Inline hints on VSCode? (Java)


I would like to disable this pop-up helper thing on my editor. How do I do that? There is a weird "next" thing beside my null. Thanks.

enter image description here


Solution

  • Well, that text is called Inlay hints or Inline hints. More specifically inline parameter hints.

    In the case of Java it will be the same as the parameter 'name' specified in Javadocs for the given function.

    As shown below, enter image description here

    You are seeing this most likely because you have one of Inline Parameters plugins installed and enabled.

    You need to go to the settings -> Search inline -> Extensions - Java -> And set the value to disabled/none.

    enter image description here

    Alternatively, you can also disable the inline extension, or uncheck the Java language from the installed extension, like below, enter image description here

    Once disabled your code should appear without inline parameter hints.

    enter image description here