Home > Back-end >  VS code showing additional information in Ubuntu
VS code showing additional information in Ubuntu

Time:11-08

Please refer to image.

enter image description here

Check the highlighted content in the line 18.

When I add the constructor to the code, year: month: & day: automatically appear in the line 18 where I created the object.

This happens only in Ubuntu OS which I recently installed as a dual boot setup. I ran the code on Windows 10 VS code and this didn't happen. VS code extensions are identical in both operating systems.

How can I disable that?

CodePudding user response:

This is an inline hint for the code.

Add the following configuration in setting to turn it off directly.

        "editor.inlayHints.enabled": "off"

Or use the following configuration to turn off inline hints for java individually.

    "[java]": {
        "editor.inlayHints.enabled": "off"
    },

Or use the following configuration to turn off java's inline hints.

    "java.inlayHints.parameterNames.enabled": "none",

It is also possible to customize the display of inline prompts for Java using the following configuration.

    "java.inlayHints.parameterNames.exclusions": [
        "(arg*)"
    ],
  • Related