Does anyone know how to get argument name automatically in Visual Studio Code?

Viewed 1025

Look at the below-given image of Intellij IDEA - Automatic argument names(image of Intellij IDEA)

When we use a function it automatically provides the argument name and when we copy a code-snippet then that argument name is not copied(it is just for our reference).

I want to do the same in my vs-code editor but, I can't find any way to do it.

3 Answers

There is a new version of VS Code, there they had given support for Parameter hint highlight enter image description here See the release notes

This feature, called "parameter hints", requires support from the language server, so whether or not this is currently supported varies from language to language.

For C++, clangd has experimental support for this (enabled by adding --inlay-hints=true to "clangd.arguments") starting from clangd 13.

I'm not familiar with the status for other languages, so will let others answer on that front.

Related