vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

Autocomplete Method Signatures

Open Number-3434 opened this issue 1 year ago • 0 comments

Proposal

Autocomplete the method signature when writing a method.

For example:

GIF of JavaScript Method Autocompletion

This should insert a snippet that essentially matches the declaration, minus the types and default values.

Every parameter should be a tab stop (i.e. you can use the ⇥ Tab key to navigate to the next parameter).

    Math.Clamp(value, min, max);

value, min, and max will be tab stops.

I understand that this may be made difficult due to method overloading, I've opened an issue on the VSCode repo:

  • https://github.com/microsoft/vscode/issues/201285

If this gets approved, then you will be able to choose the overload you want from the suggest widget, and then it will autocomplete it with signatures when you accept the suggestion.

However, as an initial step this should ideally apply to any method with only one overload.

Number-3434 avatar Feb 15 '24 10:02 Number-3434