Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is VS Code showing this these labels or parameter names for System.out.println() in java files? [duplicate]

I have the java extension pack installed. This just started happening today. Not sure if this is due to some json settings or something else.

inlay hints in java files

like image 489
GuitarString Avatar asked Nov 22 '25 23:11

GuitarString


2 Answers

See Random things such as "s:", "x:", and name of parameters are showing up inside of my print statements: java extension issues.

It's a new feature introduced in 1.5.0, called inlay hint. We use that to display the parameter names of those arguments.

If you do not want to have them in your editor, you can set the setting java.inlayHints.parameterNames.enabled to none

like image 54
Mark Avatar answered Nov 24 '25 18:11

Mark


To disable this setting Open 'setting.json' file

(CTRL + SHIFT + P and type "Open Settings (JSON)" to open setting.json)

Add this code in this file

  "editor.inlayHints.enabled": "off"

enter image description here

like image 43
Zeeshan Saeed Avatar answered Nov 24 '25 16:11

Zeeshan Saeed



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!