Preventing (Of ​​...) auto-completion in the Visual Basic Editor

Repro

  • Launch VS 2015
  • Create a new VB.NET console application
  • Start typing inside Sub Main ():

    Dim s = {"a", "b"} s.Se 
  • Note that Visual Studio offers a Select extension method:

screenshot

  1. Click ( to automatically end and start providing parameters to the method.

Actual result : s.Select(Of …)()

Desired result : s.Select()

I don't need the (Of …) , since type inference works fine without it in 99% of cases, and it clutters my code. Is there a way to say autocomplete in order not to do this?

Note Apparently, this β€œproblem” only affects the extension methods Enumerable.Select(Of T) and Enumerable.SelectMany(Of T) . Enumerable.Cast(Of T) and the custom extension method Select(Of T) work fine (no (Of …) ).

+5
source share

Source: https://habr.com/ru/post/1262743/


All Articles