interactive icon indicating copy to clipboard operation
interactive copied to clipboard

avoid generating angle brackets

Open h0zr opened this issue 6 months ago • 1 comments

How can I prevent this behavior from occurring? (https://github.com/dotnet/interactive/pull/1947)

How to avoid generating angle brackets during code completion?

Image

I hope I get .Select() instand of .Select<>()

h0zr avatar Jul 07 '25 04:07 h0zr

The logic for this is here:

https://github.com/dotnet/interactive/blob/400ef577daa828d5809fa271beeceaad884ea483/src/Microsoft.DotNet.Interactive.CSharp/CompletionExtensions.cs#L68

I wonder if the angle bracket insertion should be removed for all method calls. Sometimes it's useful because not all generic methods will have arguments that support type inference, but maybe your example is the more common case.

jonsequitur avatar Jul 07 '25 16:07 jonsequitur