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)