79756247

Date: 2025-09-04 21:47:06
Score: 1.5
Natty:
Report link

How to enable Name Hints in VS Code for Java

Make sure you have the correct extension installed:

Extension Pack for Java

Within that pack: Language Support for Java™ by Red Hat

In your settings.json, enter the following (you already have part of it, so I'll give you the complete version):

“editor.inlayHints.enabled”: “on”,

“java.inlayHints.parameterNames.enabled”: “all”,

“java.inlayHints.parameterNames.exclusions”: [],

“java.inlayHints.parameterNames.showLiteralValues”: true,

“java.inlayHints.parameterNames.showNamesForAllParameters”: true

Restart the Java server:

Open the command palette (Ctrl+Shift+P)

Run: Java: Clean Java Language Server Workspace

This forces the settings to reload.

This allowed me to view them.

Translated with DeepL.com (free version)

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): How to
  • Low reputation (1):
Posted by: devoscar-antia