In the latest version of Visual Studio Code, the default settings have changed and inline parameter hints are always shown in the code despite me not using any setting for it. How do I disable them?
Example (predicate
and searchString
):
// in the below code, the text "predicate: " and "searchString: "
// are not actual contents of the file. They are inlay hints.
const indexOfFirstSummary = paragraphs.findIndex(predicate: (p) =>
p.startsWith(searchString: 'Focused development of the sixth edition')
const indexOfFirstNonSummary = paragraphs.findIndex(predicate: (p) =>
p.startsWith(searchString: 'Dozens of individuals representing many organisations')
You can disable this new default setting by putting this option in your settings.json
file:
"editor.inlayHints.enabled": "off"
The full list of available settings are:
off
offUnlessPressed
on
onUnlessPressed