Home > other >  Does anyone know how to get argunment name automatically in Visual Studio Code?
Does anyone know how to get argunment name automatically in Visual Studio Code?

Time:10-21

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.

CodePudding user response:

Looks like enter image description here

CodePudding user response:

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