snoop
snoop

Reputation: 449

VS Code Stop Showing InlayHints Types on methods/functions/objects/etc

I have enabled viewing the types in VS Code, and now I don't remember how to turn it off or where I turned it on.

I've disabled all my extensions to make sure it wasn't one of them haha. So it looks like a VS Code Setting I can't seem to find. Tags showing the types of different methods,objects in VSCode

As shown above here pointed out by the red box and arrows.

Greatly appreciate it, driving me crazy at the moment however very helpful at first.

Upvotes: 4

Views: 4076

Answers (2)

tinyBIGideas
tinyBIGideas

Reputation: 324

You can find it under Inlay Hints via the UI too rather than editing json:

enter image description here

Upvotes: 3

snoop
snoop

Reputation: 449

I found it, hope this helps someone else - it was the inlayHints for javascript displaying all that.

Open up settings for VS Code, Ctrl + Shit + P to open command palette, type "Open Settings" and selected the JSON option. I had the following set to true, switched to false.

  "javascript.inlayHints.enumMemberValues.enabled": false,
  "javascript.inlayHints.functionLikeReturnTypes.enabled": false,
  "javascript.inlayHints.parameterNames.enabled": "all",
  "javascript.inlayHints.propertyDeclarationTypes.enabled": false,
  "javascript.inlayHints.parameterTypes.enabled": false,
  "javascript.inlayHints.variableTypes.enabled": false,

Upvotes: 5

Related Questions