Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSA: Extension is no longer needed because this feature has been implemented natively #25

Open
nathanpovo opened this issue May 13, 2022 · 0 comments

Comments

@nathanpovo
Copy link

For anyone else that stumbles across this extension/repository: this extension is no longer needed because the feature has been implemented natively in VS Code.

Simply add the following settings to your settings file

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

or search for "inlay" in the settings UI and toggle the settings from there.

Toggling the hints will look as follows:

Parameter type inlay hints
image

Variable type inlay hints
image

Property type inlay hints
image

Return type inlay hints
image

See the official documentation on this feature here -> https://code.visualstudio.com/docs/languages/typescript#_inlay-hints
See this video showing the feature -> https://www.youtube.com/watch?v=tY4mrgW3jcM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant