Reputation: 449
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.
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
Reputation: 324
You can find it under Inlay Hints
via the UI too rather than editing json:
Upvotes: 3
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